schema([ Forms\Components\TextInput::make('name') ->label('Name') ->required() ->maxLength(255), Forms\Components\TextInput::make('address') ->label('Anschrift') ->maxLength(255), Forms\Components\TextInput::make('phone') ->label('Telefon') ->tel() ->maxLength(50), Forms\Components\TextInput::make('email') ->label('E-Mail') ->email() ->maxLength(255), Forms\Components\TextInput::make('website') ->label('Webseite') ->url() ->maxLength(255), ]); } public static function table(Table $table): Table { return $table ->columns([ Tables\Columns\TextColumn::make('name') ->label('Name') ->searchable(), Tables\Columns\TextColumn::make('email') ->label('E-Mail') ->searchable(), Tables\Columns\TextColumn::make('phone') ->label('Telefon'), Tables\Columns\TextColumn::make('website') ->label('Webseite') ->toggleable(isToggledHiddenByDefault: true), Tables\Columns\TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), Tables\Columns\TextColumn::make('updated_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->filters([ // ]) ->actions([ Tables\Actions\EditAction::make(), ]) ->bulkActions([ Tables\Actions\BulkActionGroup::make([ Tables\Actions\DeleteBulkAction::make(), ]), ]); } public static function getRelations(): array { return [ // ]; } public static function getPages(): array { return [ 'index' => Pages\ListSuppliers::route('/'), 'create' => Pages\CreateSupplier::route('/create'), 'view' => Pages\ViewSupplier::route('/{record}'), 'edit' => Pages\EditSupplier::route('/{record}/edit'), ]; } public static function getPluralLabel(): string { return 'Lieferanten'; } }