@extends('layouts.dashboard') @section('content') @php /** * One logged email, exactly as it was composed and sent. * * The stored body is rendered inside a sandboxed iframe rather than injected into this * page: it is a full HTML document written by the template editor, and dropping it into * the dashboard would let its own styles and markup escape into the admin chrome. * * @var array $row the email_log row */ $st = (string) $row['status']; $statusPill = ['sent' => 'qm-pill-green', 'pending' => 'qm-pill-amber', 'failed' => 'qm-pill-red']; $statusLabel = [ 'sent' => t_raw('admin.email_log.status_sent'), 'pending' => t_raw('admin.email_log.status_pending'), 'failed' => t_raw('admin.email_log.status_failed'), ]; @endphp @php /* .qm-d2: the dashboard density standard (app.css ยง35) */ @endphp
| {{ t_raw('admin.email_log.col_recipient') }} | {{ $row['to_email'] }} |
|---|---|
| {{ t_raw('admin.email_log.field_template') }} | {!! or_dash($row['template_key']) !!} |
| {{ t_raw('admin.email_log.col_attempts') }} | {{ (int) $row['attempts'] }} |
| {{ t_raw('admin.email_log.field_created') }} | {!! fmt_datetime($row['created_at']) !!} |
| {{ t_raw('admin.email_log.field_sent') }} | {!! fmt_datetime($row['sent_at']) !!} |
| {{ t_raw('admin.email_log.field_error') }} | {{ $row['last_error'] }} |
{{ t_raw('admin.email_log.message_sub') }}