@php $isScheduledView = ($status ?? '') === 'reserved'; $title = $isScheduledView ? '予約中' : '送信済'; @endphp

{{ $title }}

@if($isScheduledView) ステップ配信・メール一斉送信・イベントリマインドのうち、送信予定日時が確定していてまだ送っていないメールを表示します。 @else SMTP 送信処理が正常完了したメールを表示します。相手の受信箱への到達を保証するものではありません。 @endif

シナリオ概要
@if($isScheduledView)
予約中は、読者・メール・送信予定日時が確定した待機状態です。読者の配信停止、ステップ停止、ラベル条件の変化などで送信前に対象外になることがあります。
@else
送信済は monaka からメールサーバーへの送信処理が成功した状態です。迷惑メール判定、DKIM/DMARC、受信側制限などによる未到達は別途確認が必要です。
@endif @if($mailDeliveries->isEmpty())
{{ $title }}のメールはありません。
@else
@foreach($mailDeliveries as $row) @endforeach
件名 配信種別 対象読者 {{ $isScheduledView ? '配信予定日時' : '送信日時' }} 状態
{{ $row->subject ?: '(件名なし)' }}
@if($row->error_message)
{{ $row->error_message }}
@endif
@if($row->source_type === 'step') ステップ配信
{{ $row->stepMessage?->name ?: ('#'.($row->step_message_id ?? '—')) }}
@elseif($row->source_type === 'broadcast') メール一斉
#{{ $row->scenario_broadcast_id ?? '—' }}
@elseif($row->source_type === 'event_reminder' || str_starts_with((string) $row->source_type, 'event_reminder_')) リマインド
{{ $row->scenarioReminder?->title ?: ($row->eventBooking?->schedule?->event?->name ?: ('予約#'.($row->event_booking_id ?? '—'))) }}
@else {{ $row->source_type ?: '不明' }} @endif
{{ $row->email ?: ($row->subscriber?->email ?: '—') }}
@if($row->subscriber?->name)
{{ $row->subscriber->name }}
@endif
{{ ($isScheduledView ? $row->send_at : $row->sent_at)?->format('Y-m-d H:i:s') ?? '—' }} @if($isScheduledView) 予約中 @else 送信済 @endif
@endif