@php $notifications_count = auth()->user()->unreadNotifications->count(); @endphp @if(!isset($show_all_notifications)) @php $unreadNotifications = auth()->user()->unreadNotifications->take(5); @endphp
{{ @$notification_data->user['username'] }} @if(isset($notification_data->type) && @$notification_data->type == 'message'){{ 'left a message' }}@else{{ 'said' }}@endif {{ @$notification_data->body }} in {{ @$notification_data->title }}
{{ \Carbon\Carbon::parse(@$notification->created_at)->format('F, jS h:i A') }}