@push('title') SMS Analytics Report @endpush

{{ number_format($summary['total']) }}

Total Dispatched

Total record of all SMS attempts

{{ number_format($summary['success']) }}

Successful Delivery

{{ $summary['total'] > 0 ? round(($summary['success'] / $summary['total']) * 100, 1) : 0 }}% Success Rate

{{ number_format($summary['failed']) }}

Failed Attempts

Errors reported by SMS provider

Detailed Communication Logs
@forelse($logs as $log) @empty @endforelse
Date & Time Recipient Category Message Content Status
{{ $log->created_at->format('Y-m-d') }}
{{ $log->created_at->format('H:i:s') }}
{{ $log->mobile_number }}
@if($log->customer) {{ $log->customer->name }} @elseif($log->supplier) {{ $log->supplier->name }} @else Guest/POS @endif
{{ $log->category }}
{{ $log->message }}
@if($log->status == \App\Models\SmsLog::SENT) Success @else Failed @endif

No SMS logs found for the selected criteria.

@if($logs->hasPages()) @endif