@php use App\MyHelpers;use Illuminate\Support\Facades\Auth; @endphp @php $authData = Auth::user(); $notificationCount = $authData->unreadNotifications()->count(); @endphp @if($notificationCount > 0) {{ $notificationCount }} @endif Notifications Marks all as read @forelse($authData->notifications as $notification) {{ $notification->data['title'] }}{{MyHelpers::getDiffOfDate($notification->created_at) }} {{$notification->data['message']}} @empty @endforelse {{$authData->name}} {{$authData->role}} Profile @csrf Logout @section('AjaxScript') @endsection
Notifications
Marks all as read
{{$notification->data['message']}}
{{$authData->name}}
{{$authData->role}}