- Bilder mit automatischen WebP-Webgrößen (640/1280/2048 px), Sortierung per Drag & Drop, Mehrfach-Upload, Import-Befehl photos:import - Webseiten-Texte als feste, bearbeitbare Bausteine (config/content.php), Rich-Text bereinigt ausgegeben - Ausstattung und FAQ aus der bisherigen Webseite übernommen - Rolle Inhalte hat Zugriff auf alle Webseiten-Bereiche Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
1.5 KiB
PHP
58 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Amenities;
|
|
|
|
use App\Filament\Resources\Amenities\Pages\CreateAmenity;
|
|
use App\Filament\Resources\Amenities\Pages\EditAmenity;
|
|
use App\Filament\Resources\Amenities\Pages\ListAmenities;
|
|
use App\Filament\Resources\Amenities\Schemas\AmenityForm;
|
|
use App\Filament\Resources\Amenities\Tables\AmenitiesTable;
|
|
use App\Models\Amenity;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class AmenityResource extends Resource
|
|
{
|
|
protected static ?string $model = Amenity::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedListBullet;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Webseite';
|
|
|
|
protected static ?string $modelLabel = 'Ausstattungsmerkmal';
|
|
|
|
protected static ?string $pluralModelLabel = 'Ausstattung';
|
|
|
|
protected static ?int $navigationSort = 3;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return AmenityForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return AmenitiesTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListAmenities::route('/'),
|
|
'create' => CreateAmenity::route('/create'),
|
|
'edit' => EditAmenity::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|