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>
61 lines
1.5 KiB
PHP
61 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\PortalEmails;
|
|
|
|
use App\Enums\PortalEmailStatus;
|
|
use App\Filament\Concerns\FollowsAdminMode;
|
|
use App\Filament\Resources\PortalEmails\Pages\ListPortalEmails;
|
|
use App\Filament\Resources\PortalEmails\Tables\PortalEmailsTable;
|
|
use App\Models\PortalEmail;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use UnitEnum;
|
|
|
|
class PortalEmailResource extends Resource
|
|
{
|
|
use FollowsAdminMode;
|
|
|
|
protected static ?string $model = PortalEmail::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedEnvelopeOpen;
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Verwaltung';
|
|
|
|
protected static ?string $modelLabel = 'Portal-E-Mail';
|
|
|
|
protected static ?string $pluralModelLabel = 'Portal-E-Mails';
|
|
|
|
protected static ?int $navigationSort = 8;
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return PortalEmailsTable::configure($table);
|
|
}
|
|
|
|
public static function canCreate(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static function getNavigationBadge(): ?string
|
|
{
|
|
$review = PortalEmail::query()->where('status', PortalEmailStatus::NeedsReview)->count();
|
|
|
|
return $review > 0 ? (string) $review : null;
|
|
}
|
|
|
|
public static function getNavigationBadgeColor(): string
|
|
{
|
|
return 'danger';
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListPortalEmails::route('/'),
|
|
];
|
|
}
|
|
}
|