@extends(auth()->user()?->isAdmin() ? 'layouts.admin' : 'layouts.app') @section('title', 'Notifications') @section('content')

Notifications

@csrf
@forelse ($notifications as $notification)

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

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

@if (!empty($notification->data['approval_note']))

Note: {{ $notification->data['approval_note'] }}

@endif

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

@if (!empty($notification->data['url'])) Open @endif
@empty

No notifications.

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