Tables\Filters\Filter::make('date') ->form([ DatePicker::make('date') ->label('Select Date') ->default(today()) ->required() ]) ->query(function (Builder $query, array $data): Builder { return $query; }),
return $form ->schema([ Forms\Components\TextInput::make('question') ->required() ->maxLength(255), Repeater::make('options') ->columnSpanFull() ->relationship('options') ->schema([ TextInput::make('answer') ->required(), Toggle::make('is_true'). ]) ]);