@extends('layouts.app') @section('page-title', __('Bot Messages')) @section('content')

{{ $stats['total_batches'] }}

Total Batches

{{ $stats['total_messages'] }}

Total Messages

{{ $stats['sent_today'] }}

Sent Today

{{ $stats['pending'] }}

Pending

@foreach($batches as $batch) @endforeach
Batch ID Type Sent By Total Sent Failed Status Date Actions
{{ $batch->batch_id }} @php $messageType = $batch->filters['message_type'] ?? 'announcement'; @endphp @if($messageType === 'rating') Rating @else Announcement @endif {{ $batch->user ? $batch->user->first_name : 'N/A' }} {{ $batch->total_count }} {{ $batch->sent_count }} {{ $batch->failed_count }} @if($batch->status == 'processing') Processing @elseif($batch->status == 'completed') Completed @else Failed @endif {{ $batch->created_at->format('Y-m-d H:i') }} View
{{ $batches->links() }}
@endsection