@extends('layouts.app') @section('title', 'Campaigns') @section('content')

Campaigns

Create and manage your email sending campaigns
+ New Campaign
@if ($campaigns->isEmpty())
🚀
No campaigns yet. Create your first campaign to start sending.
@else
@foreach ($campaigns as $campaign) @php $class = match ($campaign->status) { 'running' => 'warn', 'completed' => 'ok', 'paused' => 'badge', default => 'muted', }; $label = match ($campaign->status) { 'running' => '● Running', 'completed' => 'Completed', 'paused' => 'Paused', default => 'Draft', }; $total = $campaign->pending_count + $campaign->sent_count + $campaign->failed_count + $campaign->bounced_count; $pct = $total > 0 ? round(($campaign->sent_count / $total) * 100, 1) : 0; @endphp @endforeach
Name Status Pending Sent Failed Bounced Progress
{{ $campaign->name }} {{ $label }} {{ number_format($campaign->pending_count) }} {{ number_format($campaign->sent_count) }} {{ number_format($campaign->failed_count) }} {{ number_format($campaign->bounced_count) }}
{{ $pct }}%
View Report
@endif @endsection