@extends('voyager::master')
@section('page_title', 'Email Logs')
@section('page_header')
Email Logs
@stop
@section('content')
| ID |
Sent At |
Email |
Preview |
@forelse($logs as $log)
@php
// Handle INT (unix) or DATETIME strings
$sentAt = null;
if (!empty($log->sent_email_time)) {
$sentAt = is_numeric($log->sent_email_time)
? \Illuminate\Support\Carbon::createFromTimestamp((int)$log->sent_email_time)
: \Illuminate\Support\Carbon::parse($log->sent_email_time);
}
$attachmentUrl = $log->attached_file
? (Str::startsWith($log->attached_file, ['http://','https://','/'])
? $log->attached_file
: asset($log->attached_file))
: null;
@endphp
| #{{ $log->id }} |
{{ $sentAt ? $sentAt->format('d/m/Y H:i') : '-' }} |
{{ $log->email }} |
Open
|
@empty
| No logs found. |
@endforelse
@stop
@section('css')
{{-- Optional responsive CSS (Voyager asset) --}}
@stop
@section('javascript')
{{-- Optional responsive JS (Voyager asset) --}}
@stop