@forelse ($notifications as $notification)
@unless ($notification->read_at) @else @endunless

@switch($notification->data['type'] ?? null) @case('vtu_transaction_status') {{ ucfirst($notification->data['service_type']) }} purchase {{ $notification->data['status'] }} — ₦{{ number_format($notification->data['amount'] / 100, 2) }} @break @case('wallet_credited') Wallet credited ₦{{ number_format($notification->data['amount'] / 100, 2) }} @break @case('low_balance') Low balance warning — ₦{{ number_format($notification->data['balance'] / 100, 2) }} remaining @break @default Notification @endswitch

{{ $notification->created_at->diffForHumans() }}

@empty

No notifications yet.

@endforelse
{{ $notifications->links() }}