schema([ Group::make()->schema([ Section::make()->schema([ TextInput::make('kode_paket_foto') ->label('Kode Paket Foto') ->maxLength(255), TextInput::make('nama_paket_foto') ->label('Nama Paket Foto') ->maxLength(255), TextInput::make('harga_paket_foto') ->label('Harga') ->maxLength(255), MarkdownEditor::make('fasilitas') ])->columnSpan(2), Section::make()->schema([ FileUpload::make('gambar'), Toggle::make('status') ->required() ->default(true), ]) ]) ]); } public static function table(Table $table): Table { return $table ->columns([ TextColumn::make('kode_paket_foto'), TextColumn::make('nama_paket_foto'), TextColumn::make('harga_paket_foto') ->label('Harga'), TextColumn::make('fasilitas'), ImageColumn::make('gambar') ->label('Preview') ->size(100), // Ukuran thumbnail IconColumn::make('status') ->boolean() ]) ->filters([ // ]) ->actions([ ActionGroup::make([ ViewAction::make(), EditAction::make(), DeleteAction::make() ]) ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListPaketFotos::route('/'), 'create' => Pages\CreatePaketFoto::route('/create'), 'edit' => Pages\EditPaketFoto::route('/{record}/edit'), ]; } }