{{-- Salad Summary over a date range — PDF twin of the Excel export from SaladPreparationController::exportSummary(): one block per date (salad rows + day total), a whole-period rollup for multi-day ranges, and a grand total. Same green table styling as the other kitchen PDFs. --}}
Chotekisan
Vital Kitchen • Today's Salad Preparation
SALAD SUMMARY
{{ $label }} • {{ $dayCount }} {{ $dayCount === 1 ? 'day' : 'days' }} with salads
@php $n = fn($v) => (int) $v === 0 ? '0' : (int) $v; // Emoji / pictographs in salad names render as boxes in the PDF font — strip them. $clean = fn($s) => trim(preg_replace('/[\x{1F000}-\x{1FFFF}\x{2600}-\x{27BF}\x{FE0F}\x{200D}]/u', '', (string) $s)); $colgroup = ''; @endphp {{-- Totals strip as a table: mPDF does not lay out inline-block tiles reliably. --}} @foreach ([['Total bowls', 'total'], ['Instant', 'instant'], ['Scheduled', 'scheduled'], ['Subscription', 'subscription'], ['Prepared', 'prepared'], ['Kitchen pending', 'pending'], ['Delivered', 'delivered'], ['Not delivered / skipped', 'not_delivered']] as [$t, $k]) @endforeach
{{ $grand[$k] }}
{{ $t }}
@if ($dayCount === 0)

No salads were due between {{ $from->format('d M Y') }} and {{ $to->format('d M Y') }}.

@endif {{-- Day blocks and the whole-period block are written one at a time by SaladPreparationController::exportSummary() (pdf/partials/salad-summary-block) so it can start a fresh page whenever a banner would otherwise be orphaned. --}}