schema([ // Section::make('Basic info') // ->translateLabel() // ->description('') // ->collapsible() // ->schema([ // DatePicker::make('date') // ->translateLabel() // ->required(), // TextInput::make('description') // ->required() // ->maxLength(255) // ->translateLabel(), // TextInput::make('notes') // ->required() // ->maxLength(255) // ->translateLabel(), // Select::make('doctor_id') // ->translateLabel() // ->relationship( // name: 'doctor', // modifyQueryUsing: fn (Builder $query) => $query->orderBy('name')->orderBy('last_name'), // ) // ->getOptionLabelFromRecordUsing(fn (Model $record) => "{$record->name} {$record->last_name}") // ->searchable(['name', 'last_name']) // ->preload() // ->required() // ->translateLabel(), // ]), // Section::make('Vaccines') // ->translateLabel() // ->description('') // ->collapsible() // ->collapsed() // ->schema([ // Repeater::make('vaccines') // ->schema([ // Select::make('name') // ->options(config('mp_config.vaccines.dogs')) // ->required() // ->translateLabel(), // DatePicker::make('date') // ->translateLabel() // ->required(), // ]) // ->columns(2) // ->translateLabel() // ->columnSpanFull() // ]) // ]); // } public function steps() { Wizard::make([ Wizard\Step::make('Order') ->schema([ // ... ]), Wizard\Step::make('Delivery') ->schema([ // ... ]), Wizard\Step::make('Billing') ->schema([ // ... ]), ]); } public function table(Table $table): Table { return $table ->recordTitleAttribute('description') ->columns([ TextColumn::make('date') ->translateLabel(), TextColumn::make('description') ->translateLabel(), ]) ->filters([ // ]) ->headerActions([ Tables\Actions\CreateAction::make(), ]) ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\DeleteAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]) ->emptyStateActions([ Tables\Actions\CreateAction::make(), ]); } }