状態
@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 : '—' }}
- 対象
- 有効な読者(LINEでつながっている方)
- 配信日時
- {{ $broadcast->scheduled_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 }}
@if((int) $broadcast->failed_count > 0)
配信エラーを見る
@endif
- 完了日時
- {{ $broadcast->completed_at?->format('Y-m-d H:i:s') ?? '—' }}
@if($broadcast->last_error)
最後のエラー
{{ $broadcast->last_error }}
@endif