@extends('admin.layouts.main') @section('title', 'Notifications') @section('menu', 'Notifications') @section('content')

All Notifications

@if(auth()->user()->unreadNotifications()->count() > 0)
@csrf
@endif
@forelse($notifications as $notification)

@if(!empty($notification->data['url'])) {{ $notification->data['title'] ?? 'Notification' }} @else {{ $notification->data['title'] ?? 'Notification' }} @endif @if(!$notification->read_at) NEW @endif

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

{{ $notification->created_at->diffForHumans() }} @if(!$notification->read_at)
@csrf
@endif
@empty

No notifications yet.

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