- Gäste, Buchungen (Status-Workflow), Sperrzeiten, Sonderangebote - Vorreservierung mit Haltezeit je Wohnung; abgelaufene Holds geben den Kalender sofort frei, Cron setzt Status und benachrichtigt - Sonderangebote/Sonderkonditionen: %, € pro Aufenthalt, Sonderpreis/Nacht, Gratis-Nächte; Bedingungen u. a. Saison, Vorlauf, Wochentag, Nächte, Aktionscode; bestes Einzel- vs. kombinierte Angebote - Öffentliche Seite /buchen: Belegungskalender, Live-Preis, Anfrageformular (Honeypot, Rate-Limit) - E-Mails: Angebot an Gast, Benachrichtigung Vermieter, Bestätigung, Absage, Ablauf - Filament: Anfragen & Buchungen (bestätigen, ablehnen, verlängern, stornieren, Telefonbuchung), Gäste, Sperrzeiten, Sonderangebote - Deutsche Validierungstexte Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
836 B
PHP
31 lines
836 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
enum DiscountType: string implements HasLabel
|
|
{
|
|
/** discount_value = percent of the accommodation price */
|
|
case Percent = 'percent';
|
|
|
|
/** discount_value = euro cents off the stay */
|
|
case AmountPerStay = 'amount_per_stay';
|
|
|
|
/** discount_value = special price per night in euro cents */
|
|
case NightlyRate = 'nightly_rate';
|
|
|
|
/** discount_value = number of cheapest nights that are free */
|
|
case FreeNights = 'free_nights';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::Percent => 'Rabatt in %',
|
|
self::AmountPerStay => 'Rabatt in € pro Aufenthalt',
|
|
self::NightlyRate => 'Sonderpreis pro Nacht',
|
|
self::FreeNights => 'Gratis-Nächte',
|
|
};
|
|
}
|
|
}
|