@extends('components.app-layout') @section('title', 'SMS Messages') @section('subtitle', 'Manage your bulk SMS communications') @section('content')
Track and manage your SMS communications
Total Sent
{{ $smsMessages->where('status', 'sent')->count() }}
Pending
{{ $smsMessages->where('status', 'pending')->count() }}
Failed
{{ $smsMessages->where('status', 'failed')->count() }}
Scheduled
{{ $smsMessages->where('is_scheduled', true)->where('status', 'pending')->count() }}
| Message | Recipients | Status | Cost | Date | Actions |
|---|---|---|---|---|---|
|
{{ $message->title }} {{ Str::limit($message->message, 50) }} @if($message->template) {{ $message->template->name }} @endif |
{{ $message->total_recipients }} recipients
{{ ucfirst(str_replace('_', ' ', $message->recipient_type)) }}
@if($message->status === 'sent')
✓ {{ $message->successful_sends }} sent
@if($message->failed_sends > 0)
• ✗ {{ $message->failed_sends }} failed
@endif
@endif
|
@php
$statusColors = [
'pending' => 'bg-yellow-100 text-yellow-800',
'sending' => 'bg-blue-100 text-blue-800',
'sent' => 'bg-green-100 text-green-800',
'failed' => 'bg-red-100 text-red-800',
'cancelled' => 'bg-gray-100 text-gray-800'
];
$statusIcons = [
'pending' => 'fas fa-clock',
'sending' => 'fas fa-spinner fa-spin',
'sent' => 'fas fa-check-circle',
'failed' => 'fas fa-exclamation-triangle',
'cancelled' => 'fas fa-ban'
];
@endphp
@if($message->is_scheduled && $message->status === 'pending')
{{ $message->scheduled_at->format('M d, Y g:i A') }}
@endif
|
@if($message->actual_cost)
GHS {{ number_format($message->actual_cost, 2) }}
@else
GHS {{ number_format($message->estimated_cost, 2) }}
(estimated)
@endif
|
{{ $message->created_at->format('M d, Y') }}
{{ $message->created_at->format('g:i A') }}
@if($message->sent_at)
Sent: {{ $message->sent_at->format('M d, g:i A') }}
@endif
|
Get started by sending your first SMS message to your members.
Send Your First SMS