@php $mobileUser = auth('mobile')->user(); $unreadNewsNotificationCount = $mobileUser ? $mobileUser->unreadNotifications()->where('type', \Modules\Mobile\Notifications\NewsLetterPublishedNotification::class)->count() : 0; $items = [ [ 'url' => \Modules\Mobile\Filament\Pages\Dashboard::getUrl(panel: 'mobile'), 'label' => 'Home', 'icon' => '', 'disabled' => false, 'match' => [trim(parse_url(\Modules\Mobile\Filament\Pages\Dashboard::getUrl(panel: 'mobile'), PHP_URL_PATH) ?? '', '/')], ], [ 'url' => \Modules\Mobile\Filament\Pages\Newsletters::getUrl(panel: 'mobile'), 'label' => 'News', 'icon' => '', 'disabled' => false, 'badge' => $unreadNewsNotificationCount, 'match' => [trim(parse_url(\Modules\Mobile\Filament\Pages\Newsletters::getUrl(panel: 'mobile'), PHP_URL_PATH) ?? '', '/')], ], [ 'url' => 'https://linktr.ee/LicentiaFranchiseSa', 'label' => 'Social', 'icon_image' => asset('images/icons/Link Icon - LinkTree (Black).png'), 'disabled' => false, 'external' => true, 'match' => [], ], [ 'url' => \Modules\Mobile\Filament\Pages\Todos::getUrl(panel: 'mobile'), 'label' => 'Todo', 'icon' => '', 'disabled' => false, 'match' => [trim(parse_url(\Modules\Mobile\Filament\Pages\Todos::getUrl(panel: 'mobile'), PHP_URL_PATH) ?? '', '/')], ], [ 'url' => \Modules\Mobile\Filament\Pages\Profile::getUrl(panel: 'mobile'), 'label' => 'Profile', 'icon' => '', 'disabled' => false, 'match' => [trim(parse_url(\Modules\Mobile\Filament\Pages\Profile::getUrl(panel: 'mobile'), PHP_URL_PATH) ?? '', '/')], ], ]; $currentPath = trim(request()->path(), '/'); @endphp