@extends('layouts.admin') @section('header', 'Marketing Campaign Management') @section('content')
Manage your email, SMS, and WhatsApp marketing campaigns from one place
Campaign | Subject | Status | Recipients | Open Rate | Actions |
---|---|---|---|---|---|
{{ $campaign->name }}
{{ $campaign->created_at->format('M d, Y') }}
|
{{ Str::limit($campaign->subject, 40) }}
|
@php $statusConfig = [ 'draft' => ['bg' => 'bg-gray-100', 'text' => 'text-gray-800', 'icon' => 'fas fa-edit'], 'scheduled' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'icon' => 'fas fa-clock'], 'sending' => ['bg' => 'bg-yellow-100', 'text' => 'text-yellow-800', 'icon' => 'fas fa-spinner'], 'sent' => ['bg' => 'bg-green-100', 'text' => 'text-green-800', 'icon' => 'fas fa-check'], 'failed' => ['bg' => 'bg-red-100', 'text' => 'text-red-800', 'icon' => 'fas fa-exclamation-triangle'] ]; $status = $statusConfig[$campaign->status] ?? $statusConfig['draft']; @endphp {{ ucfirst($campaign->status) }} |
{{ number_format($campaign->recipient_count ?? 0) }}
|
{{ $campaign->open_rate ?? 0 }}%
|
|
No email campaigns found |
Campaign | Sender ID | Status | Recipients | Delivery Rate | Actions |
---|---|---|---|---|---|
{{ $campaign->name }}
{{ $campaign->created_at->format('M d, Y') }}
|
{{ $campaign->sender_id }}
|
@php $statusConfig = [ 'draft' => ['bg' => 'bg-gray-100', 'text' => 'text-gray-800', 'icon' => 'fas fa-edit'], 'scheduled' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'icon' => 'fas fa-clock'], 'sending' => ['bg' => 'bg-yellow-100', 'text' => 'text-yellow-800', 'icon' => 'fas fa-spinner'], 'sent' => ['bg' => 'bg-green-100', 'text' => 'text-green-800', 'icon' => 'fas fa-check'], 'failed' => ['bg' => 'bg-red-100', 'text' => 'text-red-800', 'icon' => 'fas fa-exclamation-triangle'] ]; $status = $statusConfig[$campaign->status] ?? $statusConfig['draft']; @endphp {{ ucfirst($campaign->status) }} |
{{ number_format($campaign->recipient_count ?? 0) }}
|
{{ $campaign->delivery_rate ?? 0 }}%
|
|
No SMS campaigns found |
Campaign | Media Type | Status | Recipients | Read Rate | Actions |
---|---|---|---|---|---|
@if($campaign->media_type)
@switch($campaign->media_type)
@case('image')
@break
@case('video')
@break
@case('document')
@break
@case('audio')
@break
@default
@endswitch
@else
@endif
{{ $campaign->name }}
{{ $campaign->created_at->format('M d, Y') }}
|
@if($campaign->media_type) @switch($campaign->media_type) @case('image') 📷 Image @break @case('video') 🎥 Video @break @case('document') 📄 Document @break @case('audio') 🎵 Audio @break @default {{ ucfirst($campaign->media_type) }} @endswitch @else 💬 Text Only @endif | @php $statusConfig = [ 'draft' => ['bg' => 'bg-gray-100', 'text' => 'text-gray-800', 'icon' => 'fas fa-edit'], 'scheduled' => ['bg' => 'bg-blue-100', 'text' => 'text-blue-800', 'icon' => 'fas fa-clock'], 'sending' => ['bg' => 'bg-yellow-100', 'text' => 'text-yellow-800', 'icon' => 'fas fa-spinner'], 'sent' => ['bg' => 'bg-green-100', 'text' => 'text-green-800', 'icon' => 'fas fa-check'], 'failed' => ['bg' => 'bg-red-100', 'text' => 'text-red-800', 'icon' => 'fas fa-exclamation-triangle'] ]; $status = $statusConfig[$campaign->status] ?? $statusConfig['draft']; @endphp {{ ucfirst($campaign->status) }} |
{{ number_format($campaign->recipient_count ?? 0) }}
|
{{ $campaign->read_rate ?? 0 }}%
|
|
No WhatsApp campaigns found |