columns(2) ->components([ TextInput::make('name') ->label('Bezeichnung') ->required() ->maxLength(255), TextInput::make('description') ->label('Beschreibung') ->maxLength(255), EuroInput::make('price') ->label('Preis') ->required(), Select::make('pricing') ->label('Abrechnung') ->options(ExtraPricing::class) ->default(ExtraPricing::PerItem) ->required(), Toggle::make('is_active') ->label('Buchbar') ->default(true), ]); } public function table(Table $table): Table { return $table ->recordTitleAttribute('name') ->reorderable('sort_order') ->defaultSort('sort_order') ->columns([ TextColumn::make('name') ->label('Bezeichnung') ->description(fn ($record): ?string => $record->description), TextColumn::make('price') ->label('Preis') ->money('EUR', divideBy: 100, locale: 'de'), TextColumn::make('pricing') ->label('Abrechnung'), IconColumn::make('is_active') ->label('Buchbar') ->boolean(), ]) ->headerActions([ CreateAction::make(), ]) ->recordActions([ EditAction::make(), DeleteAction::make(), ]); } }