Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s
- Buchung erfassen: Buchungsweg Portal (Referenz, Portalpreis, ohne Kontaktdaten), Prozess bestaetigen/Vertrag sofort/nur erfassen - Buchungsakte: Kontaktdaten eintragen (automatisch oder manuell weiter), Gast um Kontaktdaten bitten, Status von Hand aendern, Archivieren - Liste: Filter Kanal, Anreisezeitraum, Kontaktdaten fehlen; Spalten ausblendbar; Archiv - Klaerung: verstaendlichere Texte, eigenstaendige Belegung mit Kanal gilt als geklaert (Gitea #4) - Akte per Button aus Liste und Belegungsplan erreichbar - Menue: Gruppen Verwaltung (Tagesgeschaeft) und Einrichtung (Konfiguration), einfache Ansicht auf 8 Punkte Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
64 lines
1.7 KiB
PHP
64 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Guests;
|
|
|
|
use App\Filament\Concerns\FollowsAdminMode;
|
|
use App\Filament\Resources\Guests\Pages\CreateGuest;
|
|
use App\Filament\Resources\Guests\Pages\EditGuest;
|
|
use App\Filament\Resources\Guests\Pages\ListGuests;
|
|
use App\Filament\Resources\Guests\RelationManagers\BookingsRelationManager;
|
|
use App\Filament\Resources\Guests\Schemas\GuestForm;
|
|
use App\Filament\Resources\Guests\Tables\GuestsTable;
|
|
use App\Models\Guest;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class GuestResource extends Resource
|
|
{
|
|
use FollowsAdminMode;
|
|
|
|
protected static ?string $model = Guest::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUsers;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Verwaltung';
|
|
|
|
protected static ?string $modelLabel = 'Gast';
|
|
|
|
protected static ?string $pluralModelLabel = 'Gäste';
|
|
|
|
protected static ?string $recordTitleAttribute = 'last_name';
|
|
|
|
protected static ?int $navigationSort = 5;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return GuestForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return GuestsTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
BookingsRelationManager::class,
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListGuests::route('/'),
|
|
'create' => CreateGuest::route('/create'),
|
|
'edit' => EditGuest::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|