Orders

@include('orders._tabs') @php $nav = fn ($m) => route('orders.index', array_filter(['view' => 'calendar', 'month' => $m->format('Y-m'), 'q' => request('q')])); $chip = ['in_progress' => 'bg-orange-100 text-orange-800 hover:bg-orange-200', 'ready' => 'bg-green-100 text-green-800 hover:bg-green-200', 'to_hand_over' => 'bg-blue-100 text-blue-800 hover:bg-blue-200']; @endphp
{{ $month->format('F Y') }}
@foreach (['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] as $d)
{{ $d }}
@endforeach
@for ($d = $start->copy(); $d->lte($end); $d->addDay()) @php $day = $byDay[$d->toDateString()] ?? collect(); $inMonth = $d->month === $month->month; @endphp
{{ $d->day }}
@foreach ($day->take(3) as $o) {{ $o->client }} @endforeach @if ($day->count() > 3)
+{{ $day->count() - 3 }} more
@foreach ($day->skip(3) as $o) {{ $o->client }} @endforeach
@endif
@endfor
@foreach (\App\Models\Order::STATUSES as $k => $v){{ $v }}@endforeach
@include('orders._new-order-modal')