@extends('layouts.master') @section('content')

Notification List

@forelse($notifications as $notification) @php $notification_message = [ 'service_name' => $notification->service?->name, 'subject' => $notification->subject, 'message_type' => collect($notification->message_type) ->map(fn($type) => ucfirst($type)) ->implode(', '), 'user_email' => $notification->user_email, 'phone' => $notification->phone, 'body' => $notification->body, 'payload' => $notification->payload, 'set_channel' => collect($notification->set_channel) ->map(function ($channel) { $requestTime = $channel['request_time'] ? \Carbon\Carbon::parse($channel['request_time'])->format('d M Y h:i A') : 'N/A'; $deliveredTime = $channel['delivered_time'] ? \Carbon\Carbon::parse($channel['delivered_time'])->format('d M Y h:i A') : 'N/A'; return $channel['message_type'] . ' (' . $channel['status'] . ')' . ' (' . $requestTime . ')' . ' (' . $deliveredTime . ')' . ($channel['error_message'] ? ' - ' . $channel['error_message'] : ''); }) ->implode(', '), 'expired_time' => $notification->otp?->expires_at, 'requested_time' => $notification->requested_time, 'delivered_time' => $notification->delivered_time, 'error_message' => $notification->error_message, 'status' => $notification->status, ]; @endphp @empty @endforelse
ID Service Type Status
{{ $loop->iteration }} {{ $notification->service?->name }} {{ $notification->module?->event }} @if($notification->status == 'delivered') {{ ucfirst($notification->status) }} @elseif($notification->status == 'error') {{ ucfirst($notification->status) }} @elseif($notification->status == 'processing' || $notification->status == 'pending') {{ ucfirst($notification->status) }} @endif
No notifications found
@endsection