@extends('layouts.app') @section('title', 'Menu Cycles') @section('content')

Menu cycles

Build rotating menu cycles, assign recipes to each meal and stamp them onto the calendar.
@if($active) @endif
@include('kitchen._nav')

Menu cycles

{{ $menus->count() }} cycles
@if($active)

{{ $active->name }}

{{ $active->cycle_days }} day cycle · assign a recipe to each meal slot.
{{ $active->slots->count() }} slots
@for($day = 1; $day <= (int) $active->cycle_days; $day++) @foreach(['Breakfast', 'Lunch', 'Supper'] as $meal) @php($slot = $active->slots->firstWhere(fn ($s) => (int) $s->day === $day && $s->meal === $meal)) @endforeach @endfor
DayMealRecipeSave
{{ $day }} {{ $meal }}
@csrf

Planned meals

Latest stamped plans for this cycle.
@forelse($plans as $plan) @empty @endforelse
DateMealRecipeHeadcountCostStatus
{{ \Carbon\Carbon::parse($plan->date)->format('D, d M Y') }} {{ ucfirst($plan->meal) }} {{ $plan->recipe ?: '—' }} {{ num($plan->headcount) }} {{ money($plan->cost) }}
@else
@endif
@if($active)
@csrf

Each day's meals are costed against the current learner headcount and recipe cost.

@endif @endsection @push('styles') @endpush