{{ __('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( isset($notification->data['type']) && $notification->data['type'] == 'customersupport' ) { $notification_id = $notification->data['support_id']; $route = null; } else { $notification_id = $notification->data['id'] ?? null; $route = null; } @endphp
#{{ $notification->data['support_id'] ?? $notification_id }} {{ str_replace('_', ' ',ucfirst(strtolower($notification->data['type'] ?? null))) }}
{{ timeAgoFormate($notification->created_at) }} {{--

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

--}} @php $message = $notification->data['message'] ?? __('message.booked'); if(is_array($message)) { $message = implode(', ', $message); } @endphp

{{ $message }}

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

@endif