forget(['selected_plant']); $this->filtersForm->fill([ 'plant' => null ]); } public function filtersForm(Form $form): Form { return $form ->statePath('filters') ->schema([ Select::make('plant') ->options(Plant::pluck('name', 'id')) ->label('Select Plant') ->reactive() ->afterStateUpdated(function ($state) { session(['selected_plant' => $state]); $this->dispatch('patrolEntryChart'); }), ]); } public static function getNavigationLabel(): string { return 'Guard Patrol Day Count'; } public function getHeading(): string { return 'Guard Patrol Day Chart'; } public function getWidgets(): array { return [ GuardPatrolDayChart::class, ]; } public static function canAccess(): bool { return Auth::check() && Auth::user()->can('view guard patrol day count dashboard'); } }