{{-- Header --}}
Monitoring — Morning Alert
{{ $channelLabel }} — {{ now()->timezone(config('monitoring-alerts.timezone','America/Los_Angeles'))->format('l, F j, Y \a\t g:i A T') }}
|
{{-- Section 1: Urgent / Action Needed --}}
@if (!empty($urgent))
Urgent: Action Needed ({{ count($urgent) }})
| Order # |
Status |
Issue |
Days Stuck |
Assigned |
@foreach ($urgent as $entry)
| {{ $entry['external_order_id'] ?? $entry['order_id'] }} |
{{ $entry['carrier_status'] ?? '—' }} |
{{ $entry['issue'] ?? '—' }} |
{{ $entry['days_stuck'] ?? '—' }} |
{{ $entry['assigned_name'] ?? 'Unassigned' }} |
@endforeach
|
|
@endif
{{-- Section 2: New Flags --}}
@if (!empty($newFlags))
New Flags Since Yesterday ({{ count($newFlags) }})
| Order # |
Flag Reason |
Carrier Status |
State |
@foreach ($newFlags as $entry)
| {{ $entry['external_order_id'] ?? $entry['order_id'] }} |
{{ $entry['flag_reason'] ?? '—' }} |
{{ $entry['carrier_status'] ?? '—' }} |
{{ $entry['shipping_state'] ?? '—' }} |
@endforeach
|
|
@endif
{{-- Section 3: Unshipped --}}
@if (!empty($unshipped))
Unshipped Orders ({{ count($unshipped) }})
| Order # |
Date Placed |
Hours Since |
Supplier |
State |
@foreach ($unshipped as $entry)
| {{ $entry['external_order_id'] ?? $entry['order_id'] }} |
{{ $entry['date_placed'] ?? '—' }} |
{{ $entry['hours_since'] ?? '—' }} |
{{ $entry['supplier'] ?? '—' }} |
{{ $entry['shipping_state'] ?? '—' }} |
@endforeach
|
|
@endif
{{-- Section 4: Daily Snapshot --}}
Daily Snapshot
| Yesterday's Orders: | {{ $snapshot['yesterday_orders'] ?? 0 }} |
| Shipped: | {{ $snapshot['yesterday_shipped'] ?? 0 }} |
| Delivered: | {{ $snapshot['yesterday_delivered'] ?? 0 }} |
| Delayed: | {{ $snapshot['yesterday_delayed'] ?? 0 }} |
| Open Monitoring Items: | {{ $snapshot['open_monitoring'] ?? 0 }} |
| 7-Day On-Time %: | {{ $snapshot['seven_day_ontime_pct'] ?? '—' }}% |
|
|
{{-- CTA Button --}}
|
View Full Dashboard
|
{{-- Footer --}}
|
This is an automated alert from Central Monitoring. To manage alert settings, update config/monitoring-alerts.php.
|