@php $sidenav = json_decode($sidenav); $settings = file_get_contents(resource_path('views/admin/setting/settings.json')); $settings = json_decode($settings); $routesData = []; foreach (\Illuminate\Support\Facades\Route::getRoutes() as $route) { $name = $route->getName(); if (strpos($name, 'admin') !== false) { $routeData = [ $name => url($route->uri()), ]; $routesData[] = $routeData; } } @endphp @if (version_compare(gs('available_version'), systemDetails()['version'], '>')) @endif @can('admin.notifications') @if ($adminNotificationCount > 0) {{ $adminNotificationCount <= 9 ? $adminNotificationCount : '9+' }} @endif @lang('Notification') @if ($adminNotificationCount > 0) @lang('You have') {{ $adminNotificationCount }} @lang('unread notification') @endif @forelse($adminNotifications as $notification) {{ __($notification->title) }} {{ diffForHumans($notification->created_at) }} @empty @lang('No unread notification found') @endforelse @endcan @can('admin.setting.system') @endcan {{ auth()->guard('admin')->user()->username }} @lang('Profile') @lang('Password') @lang('Logout') @php foreach ($settings as $setting){ if(is_array($setting->route_name)){ foreach ($setting->route_name as $route) { if(can($route)){ $setting->route_name = $route; break; } } } } @endphp @push('script') @endpush
@lang('You have') {{ $adminNotificationCount }} @lang('unread notification')
@lang('No unread notification found')