@include('admin.logs._tabs')
@foreach (['mail' => ['Emails', 'bi-envelope'], 'sms' => ['SMS', 'bi-chat-dots'], 'whatsapp' => ['WhatsApp', 'bi-whatsapp']] as $ch => [$label, $icon])
{{ $label }} ยท last 24 h
{{ (int) ($counts[$ch]->sent ?? 0) }}
@if ((int) ($counts[$ch]->failed ?? 0) > 0){{ (int) $counts[$ch]->failed }} failed@endif
@endforeach
@if ($messages->isEmpty()) @else
@foreach ($messages as $m) @endforeach
WhenChannelToSubject / messageResult
{{ \Illuminate\Support\Carbon::parse($m->created_at)->format('d M, h:i:s A') }} {{ ['mail' => 'Email', 'sms' => 'SMS', 'whatsapp' => 'WhatsApp'][$m->channel] ?? $m->channel }} {{ $m->recipient }} {{ $m->subject }} @if ($m->status === 'sent')Sent@elseFailed
{{ $m->error }}
@endif
@if ($messages->hasPages())@endif @endif