Past Week Report
Agent: {{ $agent->code }} | {{ $weekStart->format('M d') }} - {{ $weekEnd->format('M d, Y') }}
← Back to Dashboard
{{ $totalRefills }}
Total Refills
{{ $totalQuantity }}
Units Refilled
{{ $shopsVisited }}
Shops Visited
@if ($refillsByDate->isNotEmpty()) @foreach ($refillsByDate as $date => $shops)
{{ \Carbon\Carbon::parse($date)->format('l, F d, Y') }}
@foreach ($shops as $shopCode => $shopData)
{{ $shopData['name'] }}
{{ $shopCode }}
{{ $shopData['refills']->count() }} refill(s)
+{{ $shopData['refills']->sum('quantity_approved') }} units
@foreach ($shopData['refills'] as $refill)
{{ $refill->refill_code }}
{{ $refill->product->name }}
+{{ $refill->quantity_approved }}
{{ \Carbon\Carbon::parse($refill->request_date)->format('h:i A') }}
@endforeach
@endforeach
@endforeach @else
📦
No Refills This Week
No refill activities recorded in the past week.
@endif