@extends('admin.layouts.app') @section('title', __('admin.logs.email_logs')) @section('content')
@foreach(['admin.logs.index'=>__('admin.logs.activity'),'admin.logs.gateway'=>__('admin.logs.gateway'),'admin.logs.module'=>__('admin.logs.module'),'admin.logs.email'=>__('admin.logs.email')] as $route=>$label) {{ $label }} @endforeach
{{ __('common.actions.clear') }}
@forelse($logs as $log) @empty @endforelse
{{ __('common.table.date') }}{{ __('common.table.client') }}{{ __('admin.logs.recipient') }}{{ __('common.table.subject') }}{{ __('common.table.status') }}
{{ $log->date?->format('Y-m-d H:i:s') ?? $log->created_at?->format('Y-m-d H:i:s') ?? '-' }} @if($log->client){{ $log->client->full_name }} @else-@endif {{ $log->to ?? '-' }} {{ $log->subject ?? '-' }} @if($log->failed){{ __('admin.logs.status_failed') }} @elseif($log->pending){{ __('admin.logs.status_pending') }} @else{{ __('admin.logs.status_sent') }}@endif
{{ __('admin.logs.no_email_logs') }}
@if($logs->hasPages())
{{ $logs->withQueryString()->links() }}
@endif
@endsection