@props([ 'pageName' => 'Delivery Report', ]) {{ $pageName }} - {{ $date }}

{{ $pageName }}

Date: {{ \Carbon\Carbon::parse($date)->setTimezone(config('app.timezone'))->format('d M Y') }}
Generated at: {{ $generated_at->setTimezone(config('app.timezone'))->format('d M Y, h:i A') }}
@foreach($rows as $row) @endforeach
Date S_ID Subscriber Phone Address Meals to Pack Delivery At
{{ \Carbon\Carbon::parse($row->date)->setTimezone(config('app.timezone'))->format('d M Y') }} {{ $row->subscriber_id }} {{ $row->subscriber_name }} {{ $row->subscriber_phone }} {{ $row->subscriber_address }} {{ implode(', ', collect($row->meal_names)->map(fn($meal) => ucfirst(str_replace('-', '_', $meal)))->toArray()) }} {{ $row->delivered_at }}
{{ $pageName }}