{{-- Header --}} {{-- Section 1: Urgent / Action Needed --}} @if (!empty($urgent)) @endif {{-- Section 2: New Flags --}} @if (!empty($newFlags)) @endif {{-- Section 3: Unshipped --}} @if (!empty($unshipped)) @endif {{-- Section 4: Daily Snapshot --}} {{-- CTA Button --}} {{-- Footer --}}

Monitoring — Morning Alert

{{ $channelLabel }} — {{ now()->timezone(config('monitoring-alerts.timezone','America/Los_Angeles'))->format('l, F j, Y \a\t g:i A T') }}

Urgent: Action Needed ({{ count($urgent) }})

@foreach ($urgent as $entry) @endforeach
Order # Status Issue Days Stuck Assigned
{{ $entry['external_order_id'] ?? $entry['order_id'] }} {{ $entry['carrier_status'] ?? '—' }} {{ $entry['issue'] ?? '—' }} {{ $entry['days_stuck'] ?? '—' }} {{ $entry['assigned_name'] ?? 'Unassigned' }}

New Flags Since Yesterday ({{ count($newFlags) }})

@foreach ($newFlags as $entry) @endforeach
Order # Flag Reason Carrier Status State
{{ $entry['external_order_id'] ?? $entry['order_id'] }} {{ $entry['flag_reason'] ?? '—' }} {{ $entry['carrier_status'] ?? '—' }} {{ $entry['shipping_state'] ?? '—' }}

Unshipped Orders ({{ count($unshipped) }})

@foreach ($unshipped as $entry) @endforeach
Order # Date Placed Hours Since Supplier State
{{ $entry['external_order_id'] ?? $entry['order_id'] }} {{ $entry['date_placed'] ?? '—' }} {{ $entry['hours_since'] ?? '—' }} {{ $entry['supplier'] ?? '—' }} {{ $entry['shipping_state'] ?? '—' }}

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'] ?? '—' }}%
View Full Dashboard

This is an automated alert from Central Monitoring. To manage alert settings, update config/monitoring-alerts.php.