@extends('sendportal::layouts.app') @section('title', __('Messages')) @section('heading', __('Messages')) @section('content') @include('sendportal::messages.partials.nav') @component('sendportal::layouts.partials.actions') @slot('left')
@if(request()->route()->named('sendportal.messages.index'))
@endif @if(request()->anyFilled(['search', 'status'])) {{ __('Clear') }} @endif
@endslot @endcomponent
@if(request()->route()->named('sendportal.messages.draft')) @endif @forelse($messages as $message) @if(request()->route()->named('sendportal.messages.draft') && ! $message->sent_at) @endif @empty @endforelse
{{ __('Date') }} {{ __('Subject') }} {{ __('Source') }} {{ __('Recipient') }} {{ __('Status') }}{{ __('Actions') }}
@csrf
{{ $message->sent_at ?? $message->created_at }} {{ $message->subject }} @if($message->isCampaign()) {{ $message->source->name }} @elseif($message->isAutomation()) {{ $message->source->automation_step->automation->name }} @endif {{ $message->recipient_email }} @include('sendportal::messages.partials.status-row')
@csrf {{ __('Preview') }}
@csrf @method('delete')

{{ __('There are no messages') }}

@include('sendportal::layouts.partials.pagination', ['records' => $messages]) @push('js') @endpush @endsection