Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte, Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
||
|
||
namespace App\Mail;
|
||
|
||
use App\Models\Booking;
|
||
use Illuminate\Bus\Queueable;
|
||
use Illuminate\Mail\Mailable;
|
||
use Illuminate\Mail\Mailables\Address;
|
||
use Illuminate\Mail\Mailables\Content;
|
||
use Illuminate\Mail\Mailables\Envelope;
|
||
use Illuminate\Queue\SerializesModels;
|
||
|
||
/**
|
||
* A short booking information for the guest of a binding booking – without contract and without attachment
|
||
* (V2.1 „Buchungsinformation“, independent of the contract documentation). Working draft like the other guest texts:
|
||
* it only goes out automatically where the landlord chose that for the channel.
|
||
*/
|
||
class BookingNotice extends Mailable
|
||
{
|
||
use Queueable, SerializesModels;
|
||
|
||
public function __construct(public Booking $booking) {}
|
||
|
||
public function envelope(): Envelope
|
||
{
|
||
return new Envelope(
|
||
subject: 'Ihre Buchung '.($this->booking->portal_reference ?? $this->booking->reference),
|
||
replyTo: [new Address(config('fewo.owner.email'), config('fewo.owner.name'))],
|
||
);
|
||
}
|
||
|
||
public function content(): Content
|
||
{
|
||
return new Content(markdown: 'mail.booking-notice');
|
||
}
|
||
}
|