@foreach ($shopsData as $shopData)
@if ($shopData['refills']->count() > 0)
@foreach ($shopData['refills'] as $refill)
{{ $refill->refill_code }}
{{ $refill->product->name }}
{{ $refill->request_date->format('M d, Y') }}
+{{ $refill->quantity_approved }} units
@endforeach
@endif
@endforeach
@foreach ($shopsData as $shopData)
@if ($shopData['refills']->count() === 0)
⚠️ This shop has not been refilled in the past 2 weeks
@endif
@endforeach