forked from eatvio/eatvio-infra
live charts update added
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
@section('main_section')
|
||||
<section class="py-5" id="main">
|
||||
<div class="container d-flex justify-content-between align-items-center mb-5 px-4 py-4 --bg_white --shadow --radius --mw-1000">
|
||||
<a href="#" class="d-flex align-items-center --f_bold --f_main"><svg width="17" height="16" class="me-2"><use xlink:href="#GoBack"></use></svg><span class="d-none d-md-inline">Консультанты</span></a>
|
||||
<a href="#" class="d-flex align-items-center --f_bold --f_main"><svg width="17" height="16" class="me-2"><use xlink:href="#GoBack"></use></svg><span class="d-none d-md-inline">{{ __('profile.consultants') }}</span></a>
|
||||
<div class="d-flex align-items-center">
|
||||
<a href="#" class="d-flex align-items-center me-4 --f_bold --f_main"><svg width="24" height="24" class="me-2"><use xlink:href="#Blog"></use></svg><span class="d-none d-md-inline">Блог</span></a>
|
||||
<a href="{{ route('user_detailz.show', ['user_detailz' => $user->detailz]) }}" class="d-flex align-items-center --f_bold --f_main"><svg width="24" height="24" class="me-2"><use xlink:href="#Settings"></use></svg><span class="d-none d-md-inline">Настройки</span></a>
|
||||
<a href="#" class="d-flex align-items-center me-4 --f_bold --f_main"><svg width="24" height="24" class="me-2"><use xlink:href="#Blog"></use></svg><span class="d-none d-md-inline">{{ __('profile.blog') }}</span></a>
|
||||
<a href="{{ route('user_detailz.show', ['user_detailz' => $user->detailz]) }}" class="d-flex align-items-center --f_bold --f_main"><svg width="24" height="24" class="me-2"><use xlink:href="#Settings"></use></svg><span class="d-none d-md-inline">{{ __('profile.settings') }}</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,16 +14,17 @@
|
||||
<div class="col-lg-8 d-flex justify-content-between flex-column flex-sm-row me-lg-4 mb-4 mb-lg-0 px-3 py-4 --bg_white --shadow --radius --no_wrap">
|
||||
@livewire('profile.photo-form', ['user' => $user])
|
||||
<div class="flex-grow-1 --no_wrap_normal">
|
||||
<div class="h3 --f_bold">{{ auth()->user()->name }}</div>
|
||||
<div class="h3 --f_bold">{{ $user->name }}</div>
|
||||
<p>{{ $user->is_consultant ? __('profile.is_consultant') : __('profile.is_user') }}</p>
|
||||
@livewire('profile.description-form', ['user' => $user])
|
||||
</div>
|
||||
</div>
|
||||
<div class="col px-4 px-lg-5 py-4 --bg_white --shadow --radius --no_wrap flex-grow-1">
|
||||
<nav class="nav flex-column --menu_icons ps-4">
|
||||
<div><i class="--f_blue --f_bold fs-5">3</i><span class="nav-item">Планов пройдено</span></div>
|
||||
<div><i class="--f_blue --f_bold fs-5">64</i><span class="nav-item">Записей в блоге</span></div>
|
||||
<div><svg width="20" height="15"><use xlink:href="#Eye"></use></svg><span class="nav-item">Просмотров: 2102</span></div>
|
||||
<div><svg width="17" height="14"><use xlink:href="#Heart"></use></svg><span class="nav-item">Лайков: 128</span></div>
|
||||
<div><i class="--f_blue --f_bold fs-5">3</i><span class="nav-item">{{ __('profile.plans_passed') }}</span></div>
|
||||
<div><i class="--f_blue --f_bold fs-5">64</i><span class="nav-item">{{ __('profile.blog_posts') }}</span></div>
|
||||
<div><svg width="20" height="15"><use xlink:href="#Eye"></use></svg><span class="nav-item">{{ __('profile.views') }}: 2102</span></div>
|
||||
<div><svg width="17" height="14"><use xlink:href="#Heart"></use></svg><span class="nav-item">{{ __('profile.likes') }}: 128</span></div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,74 +34,27 @@
|
||||
<div class="container mb-3 --mw-1000">
|
||||
<div class="row justify-content-between flex-lg-nowrap --mw-1000">
|
||||
<div class="col-lg-6 px-0 me-lg-4">
|
||||
@livewire('profile.circumference-chart', ['user' => $user])
|
||||
@livewire('profile.weight-chart', ['user' => $user])
|
||||
|
||||
<div class="mb-4 p-3 --bg_white --shadow --radius --no_wrap">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<small class="--f_black">Обхват:</small>
|
||||
<div class="d-flex align-items-center">
|
||||
<small class="me-3">Грудь:<span class="ms-2 --f_bold --f_rose">{{ $lastOneMisure->chest_circumference }}</span></small>
|
||||
<small class="me-3">Талия:<span class="ms-2 --f_bold --f_blue">{{ $lastOneMisure->waist_circumference }}</span></small>
|
||||
<small>Бедра:<span class="ms-2 --f_bold --f_lime">{{ $lastOneMisure->hip_circumference }}</span></small>
|
||||
</div>
|
||||
<div class="fs-5_5 text-center">
|
||||
<div class="--f_bolder">
|
||||
<button onclick="Livewire.emit('openModal', 'user.add-circumference')" style="border: none;background: none;">
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- <img src="/img/chart_1.svg" class="w-100" /> --}}
|
||||
<div class="w-100" style="height: 14rem;" id="circumference_misure_chart">
|
||||
<livewire:livewire-line-chart
|
||||
:line-chart-model="$lineChartModel"
|
||||
key="{{ $lineChartModel->reactiveKey() }}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4 p-3 --bg_white --shadow --radius --no_wrap">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<small class="--f_black">Вес:</small>
|
||||
<div class="d-flex align-items-center">
|
||||
<small class="me-3">Было:<span class="ms-2 --f_bold --f_gold">{{ $user->weight_measures()->get()->first()->weight }}</span></small>
|
||||
<small>Стало:<span class="ms-2 --f_bold --f_green">{{ $user->weight_measures()->get()->last()->weight }}</span></small>
|
||||
</div>
|
||||
<div class="fs-5_5 text-center">
|
||||
<div class="--f_bolder">
|
||||
<button onclick="Livewire.emit('openModal', 'user.add-weight')" style="border: none;background: none;">
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
<div class="mb-4 p-3 --bg_white --shadow --radius --no_wrap">
|
||||
<div class="h5">Пройденные планы:</div>
|
||||
<div class="h5">{{ __('profile.passed_plans') }}:</div>
|
||||
<hr/>
|
||||
<table class="table --table_blue mb-0 fs-4_5 --f_bold"><tbody>
|
||||
<tr>
|
||||
<td><img src="/img/plan_1.png" class="--radius_100" width="26px" height="26px" /></td>
|
||||
<td class="w-50 text-start ps-0">Лёгкий</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-success">Готов</small></td>
|
||||
<td class="w-50 text-start ps-0">{{ __('profile.easy') }}</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-success">{{ __('profile.done') }}</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/img/plan_2.png" class="--radius_100" width="26px" height="26px" /></td>
|
||||
<td class="w-50 text-start ps-0">Умеренный</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-success">Готов</small></td>
|
||||
<td class="w-50 text-start ps-0">{{ __('profile.moderate') }}</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-success">{{ __('profile.done') }}</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="/img/plan_3.png" class="--radius_100" width="26px" height="26px" /></td>
|
||||
<td class="w-50 text-start ps-0">Полный</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-warning">В процессе</small></td>
|
||||
<td class="w-50 text-start ps-0">{{ __('profile.full') }}</td>
|
||||
<td class="w-50 text-end"><small class="px-3 py-1 badge rounded-pill bg-warning">{{ __('profile.in_the_process') }}</small></td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
@@ -110,10 +64,10 @@
|
||||
|
||||
|
||||
<div class="p-3 --bg_white --shadow --radius --no_wrap">
|
||||
<a href="#" class="btn btn-lg btn_light --btn_light_color btn-block w-100 --f_bold">Создать публикацию</a>
|
||||
<a href="#" class="btn btn-lg btn_light --btn_light_color btn-block w-100 --f_bold">{{ __('profile.create_a_post') }}</a>
|
||||
</div>
|
||||
|
||||
<div class="h4 my-3 --f_grey">ВСЕ ПУБЛИКАЦИИ</div>
|
||||
<div class="h4 my-3 --f_grey">{{ __('profile.all_posts') }}</div>
|
||||
|
||||
<div class="p-3 --bg_white --shadow --radius --no_wrap">
|
||||
|
||||
@@ -156,17 +110,17 @@
|
||||
<div class="d-flex mt-3 align-items-center justify-content-between --f_bold">
|
||||
<a href="#" class="d-flex align-items-center --f_main"><small>
|
||||
<svg width="21" height="20" class="me-1"><use xlink:href="#ActionComment"></use></svg>
|
||||
Комментировать
|
||||
{{ __('profile.comment') }}
|
||||
</small></a>
|
||||
|
||||
<a href="#" class="d-flex align-items-center --f_main"><small>
|
||||
<svg width="24" height="21" class="me-1"><use xlink:href="#HeartPath"></use></svg>
|
||||
Нравится
|
||||
{{ __('profile.like') }}
|
||||
</small></a>
|
||||
|
||||
<a href="#" class="d-flex align-items-center --f_main"><small>
|
||||
<svg width="21" height="22" class="me-1"><use xlink:href="#Share"></use></svg>
|
||||
<span class="d-none d-sm-inline">Поделится</span>
|
||||
<span class="d-none d-sm-inline">{{ __('profile.share') }}</span>
|
||||
</small></a>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user