Files
eatvio-infra/resources/views/livewire/profile/weight-chart.blade.php
2023-10-04 17:57:09 +03:00

21 lines
1.1 KiB
PHP

<div class="mb-4 p-3 --bg_white --shadow --radius --no_wrap">
<div class="d-flex justify-content-between align-items-center mb-2 px-6">
<small class="--f_black">{{ __('profile.weight') }}:</small>
<div class="d-flex align-items-center">
<small class="me-3">{{ __('profile.was') }}:<span class="ms-2 --f_bold --f_gold">{{ $user->weight_measures()->get()->first()->weight ?? '0' }}</span></small>
<small>{{ __('profile.became') }}:<span class="ms-2 --f_bold --f_green">{{ $user->weight_measures()->get()->last()->weight ?? '0' }}</span></small>
</div>
<div class="fs-5_5 text-center">
<button onclick="Livewire.dispatch('openModal', { component: 'user.add-weight' })" style="border: none;background: none;" class="--f_bolder">
+
</button>
</div>
</div>
<div class="w-100" style="height: 14rem;" id="weight_misure_chart">
<livewire:livewire-area-chart
:area-chart-model="$areaChartModel"
key="{{ $areaChartModel->reactiveKey() }}"
/>
</div>
</div>