Is this possible in dashboard? instead using Date picker I will use tab?

Tabs::make('Date Range') ->tabs([ Tabs\Tab::make('Yesterday') ->label('Yesterday') ->icon('heroicon-o-calendar') ->schema([ // Apply logic for "Yesterday" Select::make('dateFilter') ->default('yesterday') ->hidden() ->afterStateUpdated(fn () => $this->applyDateFilter('yesterday')), ]), Tabs\Tab::make('This Week') ->label('This Week') ->icon('heroicon-o-calendar') ->schema([ // Apply logic for "This Week" Select::make('dateFilter') ->default('this_week') ->hidden() ->afterStateUpdated(fn () => $this->applyDateFilter('this_week')), ]), Tabs\Tab::make('Last 30 Days') ->label('Last 30 Days') ->icon('heroicon-o-calendar') ->schema([ // Apply logic for "Last 30 Days" Select::make('dateFilter') ->default('last_30_days') ->hidden() ->afterStateUpdated(fn () => $this->applyDateFilter('last_30_days')), ]), ])->columnSpanFull(),
1 Reply
Matthew
Matthew3w ago
Why don't you try it and tell us?
Want results from more Discord servers?
Add your server