{{ $campaign->name }} - {{ t('campaign_details') }}
{{-- Action Buttons --}}

{{ $campaign->name }}

{{ $campaign->total_count }} {{ t('contacts') }}

@if ($campaign->pause_campaign) {{ t('back_to_campaigns') }} @endif @if (checkPermission('tenant.facebook_messenger.campaigns.create')) {{ t('create_new_campaign') }} @endif
{{-- Campaign Info Panel --}} @php $pendingCount = $campaign->getPendingCount(); $sentCount = $campaign->getSentCount(); $failedCount = $campaign->getFailedCount(); $totalCount = $campaign->total_count ?: 1; $sentPercent = round(($sentCount / $totalCount) * 100, 1); $failedPercent = round(($failedCount / $totalCount) * 100, 1); $pendingPercent = round(($pendingCount / $totalCount) * 100, 1); $campaignStatus = $campaign->getStatusLabel(); $statusColor = $campaign->getStatusColor(); @endphp
@if ($campaignStatus === 'sent') @elseif ($campaignStatus === 'in_progress' || $campaignStatus === 'pending') @elseif ($campaignStatus === 'paused') @else @endif

{{ t('status') }}

{{ t($campaignStatus) }}

{{ t('template') }}

{{ $campaign->fbTemplate?->name ?? t('no_template') }}

{{ t('scheduled_for') }}

@if ($campaign->send_now) {{ t('immediate') }} @elseif ($campaign->scheduled_send_time) {{ $campaign->scheduled_send_time->format('M d, Y H:i') }} @else {{ t('not_scheduled') }} @endif

{{ t('created') }}

{{ $campaign->created_at->format('M d, Y H:i') }}

{{-- Stats Cards --}}

{{ t('delivered') }}

{{ $sentCount }} / {{ $totalCount }}
{{ $sentPercent }}% {{ t('rate') }}

{{ t('pending') }}

{{ $pendingCount }} / {{ $totalCount }}
{{ $pendingPercent }}% {{ t('rate') }}

{{ t('failed') }}

{{ $failedCount }} / {{ $totalCount }}
{{ $failedPercent }}% {{ t('rate') }}
{{-- Details Table --}}

{{ t('recipients') }}