@extends('layouts.app') @section('title', __('Notifications')) @section('content') @if(auth()->user()->isAdmin())

{{ __('Send announcement') }}

@csrf
@endif
@forelse($notifications as $notification) @php($data = $notification->data)

{{ $data['title'] ?? __('Notification') }}

{{ $data['message'] ?? '' }}

{{ $notification->created_at->format('M d, Y ยท g:i A') }}

@if(! $notification->read_at)
@csrf @method('PATCH')
@endif
@empty
{{ __('You have no notifications.') }}
@endforelse
{{ $notifications->links() }}
@endsection