状態
@if($st === 'pending' && $broadcast->scheduled_at && $broadcast->scheduled_at->isFuture())
予約中
@elseif($st === 'completed')
完了
@elseif($st === 'processing')
処理中
@elseif($st === 'failed')
失敗
@else
待機
@endif
@php $isImmediatePending = $st === 'pending' && ! ($broadcast->scheduled_at && $broadcast->scheduled_at->isFuture()); @endphp
@if($isImmediatePending)
「待機」= 配信の順番待ちです(即時配信)
即時配信は送信キューに入り、サーバが順番に処理して
完了 に変わります。通常は
数分以内に配信されます。この画面は自動更新されないので、少し待ってから再読み込みしてください。
長時間「待機」のままメールが届かない場合は、配信処理(キュー)が停止している可能性があります。その際は管理者にご連絡ください。
@elseif($st === 'pending' && $broadcast->scheduled_at && $broadcast->scheduled_at->isFuture())
予約中です。指定した配信日時({{ $broadcast->scheduled_at->format('Y-m-d H:i') }})になると自動で配信されます。それまで操作は不要です。
@endif
- 名前
- {{ $broadcast->name !== null && $broadcast->name !== '' ? $broadcast->name : '—' }}
- 対象
- 有効な読者(メールあり)
- 形式
- {{ ($broadcast->mail_format ?? '') === 'text' ? 'テキスト' : 'HTML' }}
- 配信日時
- {{ $broadcast->scheduled_at?->format('Y-m-d H:i:s') ?? '即時' }}
- キュー投入日時
- {{ $broadcast->queued_at?->format('Y-m-d H:i:s') ?? '—' }}
- 送信数 / 対象数
-
@if($st === 'pending')
配信処理の完了後に集計されます(対象読者数はここに表示されます)
@else
{{ (int) $broadcast->sent_count }} / {{ (int) $broadcast->total_targets }}
@endif
- 失敗数
- {{ (int) $broadcast->failed_count }}
- 完了日時
- {{ $broadcast->completed_at?->format('Y-m-d H:i:s') ?? '—' }}
@if($broadcast->last_error)
最後のエラー
{{ $broadcast->last_error }}
@endif