Booking path 1 (offer + guest acceptance), 2FA for all, privacy hardening, brand graphics in theme

- Offer workflow: "Angebot senden" in the admin (dates, guests, promo code, manual price adjustment,
  validity from the property's hold time, message, guest data for the contract) with live price;
  contract draft PDF; signed, versioned offer page for the guest to accept (acceptance record without
  IP) or decline; expiry job, landlord notifications, editable offer texts, wording on the website.
- 2FA is mandatory for every admin account.
- Privacy: complete anonymisation (notes, attribution, review names, offer messages), shorter
  periods for unbinding requests, portal mail excerpts and attribution (configurable proposals),
  iCal summary not stored, known e-mail no longer overwrites guest data, security headers, bearer
  tokens for automations, metadata stripped from photo originals, review link throttled.
- Daily database backup (backup:database) and scripts/backup-pull.sh for the NAS.
- Theme: brand mark in header/footer, favicon/touch icon, wave divider, icons, illustration as
  image placeholder; navy follows the text colour for dark appearances.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 21:38:22 +02:00
1 parent 82698f8eda
commit 4f69b426a4
77 files changed
+1658 -108

No files matched your search

@@ -3,7 +3,11 @@
Guten Tag {{ $booking->guest->full_name }},
@if ($booking->accepted_at)
vielen Dank – Sie haben unser Angebot am {{ $booking->accepted_at->format('d.m.Y') }} um {{ $booking->accepted_at->format('H:i') }} Uhr angenommen. Damit ist Ihre Buchung der **{{ $booking->property->name }}** verbindlich.
@else
wir freuen uns, Ihre Buchung der **{{ $booking->property->name }}** verbindlich zu bestätigen.
@endif
**Anreise:** {{ $booking->arrival->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_in_time) ab {{ substr($booking->property->check_in_time, 0, 5) }} Uhr @endif<br>
**Abreise:** {{ $booking->departure->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_out_time) bis {{ substr($booking->property->check_out_time, 0, 5) }} Uhr @endif<br>
@@ -20,6 +20,6 @@
@endif
<x-mail::button :url="\App\Filament\Resources\Bookings\BookingResource::getUrl('view', ['record' => $booking])">
Anfrage bestätigen oder ablehnen
Angebot senden oder Anfrage ablehnen
</x-mail::button>
</x-mail::message>
@@ -0,0 +1,15 @@
<x-mail::message>
@if ($accepted)
# Angebot angenommen
{{ $booking->guest->full_name }} hat das Angebot **{{ $booking->reference }}** ({{ $booking->arrival->format('d.m.Y') }} – {{ $booking->departure->format('d.m.Y') }}, {{ \App\Support\Money::format($booking->total) }}) am {{ $booking->accepted_at?->format('d.m.Y') }} um {{ $booking->accepted_at?->format('H:i') }} Uhr angenommen. Die Buchung ist verbindlich; Bestätigung und Mietvertrag wurden an den Gast gesendet.
@else
# Angebot abgelehnt
{{ $booking->guest->full_name }} hat das Angebot **{{ $booking->reference }}** ({{ $booking->arrival->format('d.m.Y') }} – {{ $booking->departure->format('d.m.Y') }}) abgelehnt. Der Zeitraum ist im Kalender wieder frei.
@endif
<x-mail::button :url="\App\Filament\Resources\Bookings\BookingResource::getUrl('view', ['record' => $booking])">
Buchung öffnen
</x-mail::button>
</x-mail::message>
+31
View File
@@ -0,0 +1,31 @@
<x-mail::message>
# Ihr Angebot für die {{ $booking->property->name }}
Guten Tag {{ $booking->guest->full_name }},
{{ \App\Support\Content::get('offer.intro') }}
**Anreise:** {{ $booking->arrival->translatedFormat('l, d.m.Y') }}<br>
**Abreise:** {{ $booking->departure->translatedFormat('l, d.m.Y') }}<br>
**Personen:** {{ $booking->guests }}<br>
**Angebotsnummer:** {{ $booking->reference }}
@include('mail.partials.quote')
@if ($booking->offer_message)
{{ $booking->offer_message }}
@endif
Das Angebot gilt **bis {{ $booking->hold_expires_at->format('d.m.Y, H:i') }} Uhr**; bis dahin halten wir den Zeitraum für Sie frei.
<x-mail::button :url="$offerUrl">
Angebot ansehen und annehmen
</x-mail::button>
Auf der Angebotsseite können Sie das Angebot annehmen oder ablehnen. Erst mit Ihrer Annahme wird die Buchung verbindlich; Sie erhalten dann sofort die Buchungsbestätigung mit dem Mietvertrag.
Bei Fragen antworten Sie einfach auf diese E-Mail oder rufen Sie uns an: {{ config('fewo.owner.phone') }}
Herzliche Grüße<br>
{{ config('fewo.owner.name') }}
</x-mail::message>
@@ -1,9 +1,9 @@
<x-mail::message>
# Vormerkung abgelaufen
# {{ $booking->offer_version > 0 ? 'Angebot abgelaufen' : 'Vormerkung abgelaufen' }}
Die Anfrage **{{ $booking->reference }}** von {{ $booking->guest->full_name }} ({{ $booking->arrival->format('d.m.Y') }} – {{ $booking->departure->format('d.m.Y') }}) wurde nicht rechtzeitig bestätigt. Der Zeitraum ist im Kalender wieder frei.
Die Anfrage **{{ $booking->reference }}** von {{ $booking->guest->full_name }} ({{ $booking->arrival->format('d.m.Y') }} – {{ $booking->departure->format('d.m.Y') }}) {{ $booking->offer_version > 0 ? 'wurde vom Gast nicht rechtzeitig angenommen' : 'wurde nicht rechtzeitig beantwortet' }}. Der Zeitraum ist im Kalender wieder frei.
Sie können die Anfrage weiterhin bestätigen, sofern der Zeitraum noch frei ist.
Sie können weiterhin ein (neues) Angebot senden, sofern der Zeitraum noch frei ist.
<x-mail::button :url="\App\Filament\Resources\Bookings\BookingResource::getUrl('view', ['record' => $booking])">
Anfrage öffnen
@@ -3,16 +3,18 @@
Guten Tag {{ $booking->guest->full_name }},
wir haben Ihre Anfrage für die **{{ $booking->property->name }}** erhalten und den Zeitraum für Sie **bis {{ $booking->hold_expires_at->format('d.m.Y, H:i') }} Uhr vorgemerkt**.
wir haben Ihre unverbindliche Anfrage für die **{{ $booking->property->name }}** erhalten und den Zeitraum für Sie **bis {{ $booking->hold_expires_at->format('d.m.Y, H:i') }} Uhr vorgemerkt**.
**Anreise:** {{ $booking->arrival->translatedFormat('l, d.m.Y') }}<br>
**Abreise:** {{ $booking->departure->translatedFormat('l, d.m.Y') }}<br>
**Personen:** {{ $booking->guests }}<br>
**Anfragenummer:** {{ $booking->reference }}
**Voraussichtlicher Preis laut Preisliste:**
@include('mail.partials.quote')
Wir prüfen Ihre Anfrage und melden uns in Kürze mit der Buchungsbestätigung. Erst mit unserer Bestätigung ist die Buchung verbindlich.
Wir prüfen Ihre Anfrage und senden Ihnen in Kürze **unser Angebot** per E-Mail. Verbindlich wird die Buchung erst, wenn Sie dieses Angebot annehmen.
@if ($booking->message)
**Ihre Nachricht:**<br>