@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 @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 {{ auth()->guard('admin')->user()->username }} @lang('Profile') @lang('Password') @lang('Logout') @push('script') @endpush
@lang('You have') {{ $adminNotificationCount }} @lang('unread notification')
@lang('No unread notification found')