@extends('layouts.partials.master') @section('title', 'Log de email') @push('styles') @endpush @section('content')
@include('layouts.components.section-title', ['title' => 'Log de email']) Voltar
@include('layouts.components.alerts')
Estado: @if ($emailLog->status === 1) @include('layouts.components.badges', ['type' => 'success', 'text' => 'Enviado']) @else @include('layouts.components.badges', ['type' => 'danger', 'text' => 'Falhou']) @endif

Enviado: {{ $emailLog->sent_at }}

Para: {{ implode(', ', $emailLog->to) }}

CC: {{ implode(', ', $emailLog->cc) }}

BCC: {{ implode(', ', $emailLog->bcc) }}

Assunto: {{ $emailLog->subject }}

@if ($emailLog->error) @endif @if ($emailLog->attachments)

Anexos: {{ count($emailLog->attachments) }}

@foreach ($emailLog->attachments as $attachment) @if (!isset($attachment['path']))

{{ $attachment['name'] ?? '' }} (excluído)

@elseif (str_starts_with($attachment['path'], '/')) @if (file_exists($attachment['path']))

{{ $attachment['name'] ?? '' }}

@else

{{ $attachment['name'] ?? '' }} (excluído)

@endif @else

{{ $attachment['name'] ?? '' }} (excluído)

@endif @endforeach
@else

Sem anexos

@endif
Voltar
@endsection