### Install the package Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Install the plugin via Composer. ```bash composer require hammadzafar05/mobile-bottom-nav ``` -------------------------------- ### Run tests Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Execute the test suite for the package. ```bash composer test ``` -------------------------------- ### Register the plugin Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Add the plugin to your Filament panel provider. ```php use Hammadzafar05\MobileBottomNav\MobileBottomNav; public function panel(Panel $panel): Panel { return $panel ->plugins([ MobileBottomNav::make(), ]); } ``` -------------------------------- ### Configure navigation limits Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Adjust the number of items displayed or toggle the 'More' button. ```php MobileBottomNav::make() ->fromNavigation(5) // 4 nav items + 1 More button ``` ```php MobileBottomNav::make() ->fromNavigation(4) // 4 nav items, no More button ->moreButton(false) ``` -------------------------------- ### Publish views Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Publish the package views to customize the Blade templates. ```bash php artisan vendor:publish --tag="mobile-bottom-nav-views" ``` -------------------------------- ### Define custom navigation items Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Manually define items to override automatic extraction from the navigation registry. ```php use Hammadzafar05\MobileBottomNav\MobileBottomNav; use Hammadzafar05\MobileBottomNav\MobileBottomNavItem; MobileBottomNav::make() ->items([ MobileBottomNavItem::make('Home') ->icon('heroicon-o-home') ->activeIcon('heroicon-s-home') ->url('/admin') ->isActive(fn () => request()->is('admin')), MobileBottomNavItem::make('Inbox') ->icon('heroicon-o-inbox') ->url('/admin/inbox') ->badge(5, 'danger'), MobileBottomNavItem::make('Profile') ->icon('heroicon-o-user') ->url('/admin/profile'), ]) ``` -------------------------------- ### Set conditional visibility Source: https://github.com/hammadzafar05/mobile-bottom-nav/blob/5.x/README.md Control item visibility using a closure. ```php MobileBottomNavItem::make('Admin') ->icon('heroicon-o-shield-check') ->url('/admin/settings') ->visible(fn () => auth()->user()?->isAdmin()) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.