->navigationGroups([ 'Z', 'X', 'Y',])
NavigationGroup::make
$panel->navigationGroups([ 'Nav Group 1', 'Nav Group 2', 'Nav Group 3',])
public function mount(Request $request) { $this->fleet = $request->query('fleet', null); } protected function getHeaderWidgets(): array { return [ VesselLocationGoogleMapWidget::make([ 'fleet' => $this->fleet, ]), ]; }
public ?string $fleet = null;if ($this->fleet) { $locations = VesselLocation::latestLocations() ->whereHas('vessel.fleet', function ($query) { $query->where('name', $this->fleet); }) ->with('vessel', 'vessel.fleet') ->get(); } else { $locations = VesselLocation::latestLocations()->with('vessel', 'vessel.fleet')->get(); }