@extends('layouts.master') @php use Illuminate\Support\Str; @endphp @section('title', 'Email Outbox - Paidash') @section('content')
@if(session('success'))
{{ session('success') }}
@endif
Email Outbox
@forelse($entries as $e) @empty @endforelse
Type Context Recipient Status Attempts Scheduled At Sent At Actions
{{ $e->type }} @if(isset($e->context))
{{ $e->context['entity'] ?? '' }}: @if(!empty($e->context['url'])) {{ $e->context['label'] ?? '' }} @else {{ $e->context['label'] ?? '' }} @endif
@if(isset($e->context['amount']))
Amount: ₹{{ number_format(round((float)$e->context['amount']), 0) }}
@endif
@endif
{{ $e->recipient_email }} {{ ucfirst($e->status) }} @if($e->last_error && $e->status==='failed')
{{ Str::limit($e->last_error, 60) }}
@endif
{{ $e->attempts ?? 0 }} {{ optional($e->scheduled_at)->format('d M Y, h:i A') }} {{ optional($e->sent_at)->format('d M Y, h:i A') }}
@if(!empty($e->context['url'])) View {{ $e->context['entity'] ?? 'Detail' }} @endif @if(in_array($e->status, ['failed', 'pending']))
@csrf
@endif @if($e->last_error) @endif
No entries
@endsection