- Haltefrist 0: unverbindliche Auskunft mit signiertem Link "Buchung anfragen", erneute Prüfung unter Sperre, automatische oder manuelle Bestätigung, Absage bei vergebenem Zeitraum, Ablauf unbeantworteter Auskünfte - Aufenthalt: Anreisedaten, Aufgaben je Wohnung, gebuchte Leistungen, Abweichungen und Folgeaufgaben als Aufgaben am Vorgang - Abschluss getrennt: Aufenthalt abgeschlossen / kaufmännisch abgeschlossen, Nachläufer (Forderung, Auszahlung) bleiben sichtbar - Zahlungsstatus nur aus Geld auf unserem Konto; Altbestand per Vorschau-Befehl - Verlauf weist Testzustellungen als solche aus - Abnahmetests T16-T25, T23 über isolierten SMTP-Empfänger Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace App\Mail;
|
||
|
||
use App\Filament\Resources\Bookings\BookingResource;
|
||
use App\Models\Booking;
|
||
use Illuminate\Bus\Queueable;
|
||
use Illuminate\Mail\Mailable;
|
||
use Illuminate\Mail\Mailables\Content;
|
||
use Illuminate\Mail\Mailables\Envelope;
|
||
use Illuminate\Queue\SerializesModels;
|
||
|
||
/**
|
||
* Tells the landlord about a booking wish (package 7): confirmed automatically, waiting for the confirmation, or
|
||
* arrived after the dates were given away.
|
||
*/
|
||
class BookingWishNotice extends Mailable
|
||
{
|
||
use Queueable, SerializesModels;
|
||
|
||
public function __construct(public Booking $booking, public string $outcome) {}
|
||
|
||
public function envelope(): Envelope
|
||
{
|
||
return new Envelope(subject: match ($this->outcome) {
|
||
'confirmed' => 'Buchungswunsch automatisch bestätigt',
|
||
'unavailable' => 'Buchungswunsch – Zeitraum inzwischen vergeben',
|
||
default => 'Buchungswunsch bitte bestätigen',
|
||
}.' '.$this->booking->reference.': '.$this->booking->guestName().', '.$this->booking->arrival->format('d.m.').'–'.$this->booking->departure->format('d.m.Y'));
|
||
}
|
||
|
||
public function content(): Content
|
||
{
|
||
return new Content(markdown: 'mail.booking-wish-notice', with: ['caseUrl' => BookingResource::getUrl('view', ['record' => $this->booking])]);
|
||
}
|
||
}
|