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

Notifications

@if(isset($notifications) && $notifications->count())
@csrf @method('PATCH')
@endif
@if(isset($notifications) && $notifications->count())
@foreach($notifications as $notification)
@if(($notification->data['type'] ?? '') === 'transaction') @elseif(($notification->data['type'] ?? '') === 'security') @elseif(($notification->data['type'] ?? '') === 'account') @else @endif

{{ $notification->data['title'] ?? 'Notification' }}

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

{{ $notification->data['message'] ?? '' }}

@if(!$notification->read_at)
@csrf @method('PATCH')
@endif
@endforeach
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif @else

No Notifications

You're all caught up! New notifications will appear here.

@endif
@endsection