{{ __('message.notification') }} {{ $all_unread_count }}
{{ __('message.you_have_unread_notification',['number' => $all_unread_count ]) }} @if($all_unread_count > 0 ) {{ __('message.mark_all_as_read') }} @endif
@if(isset($notifications) && count($notifications) > 0)
@foreach($notifications->sortByDesc('created_at')->take(5) as $notification) @php if( $notification->data['type'] == 'complaintcomment' ) { $notification_id = $notification->data['complaint_id']; $route = route('complaint.show', $notification_id); } else { $notification_id = $notification->data['id']; $route = route('riderequest.show', $notification_id ); } @endphp
#{{ $notification_id }} {{ __('message.'.$notification->data['type']) }}
{{ timeAgoFormate($notification->created_at) }}

{{ isset($notification->data['message']) ? $notification->data['message'] : __('message.booked') }}

@endforeach
{{ __('message.view_all') }} @else
{{ __('message.no_notification') }}

@endif