@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
@php /* Back belongs to the page, not to one of its panels. */ @endphp
{{ t_raw('common.back') }}
@php /* The record and the message it produced read side by side - the facts are short and the preview is tall, so stacking them wasted the width. */ @endphp

{{ $row['subject'] }}

{{ $statusLabel[$st] ?? $st }}
@if (!empty($row['last_error'])) @endif
@csrf

{{ t_raw('admin.email_log.message_title') }}

{{ t_raw('admin.email_log.message_sub') }}

@php /* /.qm-d2 */ @endphp @endsection