{{$user->name}}
@if ($user->need_reweight)
Zadejte novou váhu klienta!
{{Form::open(['action' => ['B2BProfile\UsersController@reweight', $user], 'method' => 'PUT', 'id' => 'reweight-form'])}}
@endif
Dne @if(is_null($user->reweighed_at)) {{$user->created_at->format('j. m.')}} @else {{$user->reweighed_at->format('j. m.')}} @endif {{$user->gender == 'male' ? 'vážil' : 'vážila'}} {{$user->weight}} kg.
{{Form::close()}}Informace
- Váha: {{$user->weight}} kg
- Výška: {{$user->height}} cm
- BMI: {{round($user->weight/(pow($user->height/100, 2)), 2)}}
- Registrace dne: {{$user->created_at->format('d. m. Y')}} @if ($user->reweighed_at)
- Poslední převážení: {{$user->reweighed_at->format('d. m. Y')}} @endif @if (isset($user->questionnaire['birthdate']))
- Datum narození: {{$user->questionnaire['birthdate']}} (věk {{\GetFitOnline\Users\User::age($user->questionnaire['birthdate'])}} let) @endif
@if($user->generating_plan)
@foreach($user->plans->chunk(10) as $plans)
@php
$ids = [];
$names = [];
@endphp
@foreach($plans as $plan)
@php
$ids[] = $plan->id;
$names[] = $plan->block->name;
@endphp
@endforeach
Probíhá generování plánu. Zkuste za chvíli obnovit stránku, plán se zde zobrazí.
@endif
@if($user->plans->isEmpty())
@if(!$user->generating_plan)
Tento klient nemá žádný vygenerovaný
plán.
Vytvořit plán
@endif
@else
Dostupné jídelníčky
| {{$plans->first()->date->format('d. m. Y')}} @if ($plans->first()->date != $plans->last()->date) - {{$plans->last()->date->format('d. m. Y')}} @endif | Jídelníček Jídelníček (PDF) Nákupní seznam Nákupní seznam (PDF) |