{{-- Template 10: routine type --}}

{{ __('routine.routine_title') }}

@foreach (['weekday' => [$sleepWeekday, $enoughWeekday], 'weekend' => [$sleepWeekend, $enoughWeekend]] as $period => [$hours, $enough])
{{ __('routine.'.$period) }}
@if ($hours !== null)

{{ __('routine.sleep', ['hours' => rtrim(rtrim(number_format($hours, 2, ',', ''), '0'), ',')]) }} : {{ $enough ? __('routine.sleep_ok') : __('routine.sleep_low') }}

@endif
@endforeach
@foreach ($itemIds as $id)

{{ __('routine.items.'.$itemKeys[$id]) }}

@endforeach
{{-- Template 11: typical week --}}

{{ __('routine.week_title') }}

{{ __('routine.week_intro') }}

@foreach ([1, 2, 3] as $n) @endforeach
@foreach (__('routine.days') as $day => $dayLabel)

{{ $dayLabel }}

@foreach (__('routine.slots') as $slot => $slotLabel) @php $block = $blocks[$day][$slot] ?? null; @endphp
@if ($block && count($objectiveOptions)) @endif
@endforeach
@endforeach