@extends('client.layouts.dashboard') @section('title', 'WhatsApp Logs') @section('styles') @endsection @section('content')

WhatsApp Logs

View WhatsApp activity from your organization's users

Export Excel
{{ $stats['total'] }}
Total WhatsApp
{{ $stats['sent'] }}
Sent
{{ $stats['pending'] }}
Pending
{{ $stats['failed'] }}
Failed
@forelse($whatsAppLogs as $log) @empty @endforelse
User Phone Number Channel Message Type Status Time
{{ strtoupper(substr($log->user->name ?? 'U', 0, 1)) }}
{{ $log->user->name ?? 'Unknown' }}
{{ $log->phone_number }} @if($log->contact_name)
{{ $log->contact_name }} @endif
WhatsApp @if($log->sms_type === 'auto_reply') Auto Reply @elseif($log->sms_type === 'promotion') Promotion @else {{ ucfirst(str_replace('_', ' ', $log->sms_type ?? 'unknown')) }} @endif @if($log->status === 'sent') Sent @elseif($log->status === 'pending') Pending @else Failed @endif {{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('h:i A') }}

No WhatsApp logs found

@if($whatsAppLogs->hasPages()) @endif
@endsection