{{-- ================================================================ Notification Batch Details Modal ================================================================= --}} @if ($selectedBatchId) @php $selectedBatch = \App\Models\NotificationEmailBatch::query() ->find($selectedBatchId); @endphp @if ($selectedBatch) @endif @endif {{-- ================================================================ Page Actions ================================================================= --}} {{-- ================================================================ Filters ================================================================= --}}
{{-- ================================================================ Batch Table ================================================================= --}}
@forelse ($recList as $recDetail) {{-- Workflow --}} {{-- Notification --}} {{-- Parent --}} {{-- Recipient Counters --}} {{-- Result --}} {{-- Status --}} {{-- Queued At --}} {{-- Actions --}} @empty @endforelse
# Workflow Notification Parent Recipients Result Status Queued Actions
#{{ $recDetail->id }}
Batch {{ $recDetail->batch_number }} @if ($recDetail->activity_batch_count > 1) {{ $recDetail->batch_number }}/{{ $recDetail->activity_batch_count }} @endif
@if ($recDetail->workflow_type === 'job') Final Job @elseif ($recDetail->workflow_type === 'internship') Internship @else {{ $recDetail->workflow_type ?: 'N/A' }} @endif {{ $recDetail->notification_type ?: 'N/A' }}
{{ $recDetail->email_slug }}
@if ($recDetail->job_id) ID: {{ $recDetail->job_id }} @else N/A @endif
T: {{ number_format($recDetail->total_count) }} S: {{ number_format($recDetail->sent_count) }} @if ($recDetail->failed_count > 0) F: {{ number_format($recDetail->failed_count) }} @endif @if ($recDetail->invalid_count > 0) I: {{ number_format($recDetail->invalid_count) }} @endif
Sent: {{ $recDetail->sent_count }}
Failed: {{ $recDetail->failed_count }}
Invalid: {{ $recDetail->invalid_count }}
@switch($recDetail->status) @case('queued') Queued @break @case('processing') Processing @break @case('completed') Completed @break @case('completed_with_errors') Completed With Errors @break @case('failed') Failed @break @default {{ $recDetail->status }} @endswitch {{ optional($recDetail->queued_at)->format('d M Y') }}
{{ optional($recDetail->queued_at)->format('h:i A') }}
{{ $recDetail->updated_at?->format('d M Y H:i') }}
No notification batches found.
{{-- Pagination --}} @if (method_exists($recList, 'links'))
{{ $recList->links() }}
@endif
{{-- ================================================================ Modal Script ================================================================= --}} @script @endscript