-
{{ __('static.quick_links') }}@php $quickLinks = collect(get_quick_links())->filter(function ($link) { return !isset($link['permission']) || auth()->user()->can($link['permission']); })?->toArray() ?? []; @endphp
{{ __('static.quick_links') }}
-
@forelse($quickLinks as $link)
-
{{ __($link['label_key']) }}
@empty
- @endforelse
@endif
{{ __('static.quick_links_not_found') }}
-
-
{{ strtoupper(Session::get('locale', 'en')) }}
-
@forelse (getLanguages() as $lang)
-
{{ @$lang?->name }}
({{ @$lang?->locale }})
@empty
-
{{ __('static.english') }}
@endforelse
-
- @can('sos.index')
-
SOS
@php
$sosNotifications = auth()
?->user()
?->notifications()
?->where('type', 'Modules\Taxido\Notifications\SOSAlertNotification')
?->whereNull('read_at')
?->latest()
?->take(5)
?->get();
@endphp
{{ $sosNotifications?->count() }}
{{ __('static.recent_sos_alerts') }}
-
@forelse ($sosNotifications as $notification)
-
SOS Alert: {{ $notification->data['message'] ?? 'Location: ' . $notification->data['coordinates']['lat'] . ', ' . $notification->data['coordinates']['lng'] }}
{{ $notification->created_at->diffForHumans() }}
@empty
-
{{ __('static.no_sos_alert_found') }}
@endforelse
@endcan
-
-
@php $notifications = auth() ?->user() ?->notifications() ?->whereNull('read_at') ->where('type', '!=', 'Modules\Taxido\Notifications\SOSAlertNotification') ->latest() ->take(5) ->get(); @endphp @if ($notifications?->count() > 0) {{ $notifications->count() }} @endif
{{ __('static.recent_notifications') }}
-
@forelse ($notifications as $notification)
-
@if ($notification->module == 'ticket') @else @endif{{ $notification->data['message'] ?? null }}
{{ $notification->created_at->diffForHumans() }}
@empty
-
@endforelse @if ($notifications->count()) @endif
{{ __('static.no_notification_found') }}
@can('chat.index')
@php
$chatRepo = app(\App\Repositories\Admin\ChatRepository::class);
$totalUnread = $chatRepo->getTotalUnreadCount();
$recentChats = $chatRepo->getRecentChats();
@endphp
-
{{ $totalUnread }}
{{ __('static.chats.recent_chats') }}
-
@forelse($recentChats as $chat)
-
@if($chat['image'])
@else
@endif{{ strtoupper($chat['name'][0]) }}
@if($chat['unread_count'] > 0) {{ $chat['unread_count'] }} @endif{{ $chat['name'] }}
{{ $chat['last_message']['message'] ?? 'New Message' }}
@empty
-
{{ __('static.chats.no_chats_found') }}
@endforelse
@endcan
-
-
@if (Auth::user()->profile_image)
@else
@endif{{ strtoupper(substr(Auth::user()->name, 0, 1)) }}
{{ Auth::user()->name }}
{{ Auth::user()->getRoleNames()->first() }}-
@if (Route::has('admin.account.profile'))
- {{ __('static.edit_profile') }} @endif
- {{ __('static.logout') }}
-