Files
fewo-stommer/resources/views/information.blade.php
LarsandClaude Opus 5.5 40d20cb7d1 Pakete 7 und 9: Auskunft und Buchungswunsch, Aufenthalt und Abschluss (Zwischenstand)
- 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>
2026-11-02 08:29:19 +01:00

85 lines
5.8 KiB
PHP

@php($owner = \App\Documents\OfferTerms::owner($booking))
@php($money = fn (int $cents): string => \App\Support\Money::format($cents))
@extends('theme::layouts.app', ['title' => 'Unverbindliche Auskunft'])
@push('head')
<meta name="robots" content="noindex">
@endpush
@section('content')
<div class="mx-auto max-w-3xl px-4 py-14 sm:px-8">
<p class="eyebrow">Unverbindliche Auskunft · Anfrage {{ $booking->reference }}</p>
<h1 class="heading-display">{{ $booking->property->name }}</h1>
<p class="mt-2 text-muted">für {{ $booking->guestName() }}</p>
@if (session('information.success'))
<div class="mt-8 rounded border border-accent bg-surface p-5" role="status">{{ session('information.success') }}</div>
@elseif (session('information.error') || $problem)
<div class="mt-8 rounded border border-line bg-surface p-5" role="alert">{{ session('information.error') ?? $problem }}</div>
@endif
<div class="mt-8 rounded border border-line p-5">
<p class="font-semibold">Dies ist noch keine Buchung und keine Reservierung.</p>
<p class="mt-2 text-muted">Preis und Verfügbarkeit gelten für den Stand vom {{ $booking->information_sent_at?->format('d.m.Y, H:i') }} Uhr. Der Zeitraum kann in der Zwischenzeit anderweitig vergeben werden. Wenn Sie die Buchung anfragen, prüfen wir beides erneut; verbindlich wird sie erst mit unserer Buchungsbestätigung.</p>
</div>
<section class="mt-10 rounded bg-surface p-7" aria-labelledby="information-stay">
<h2 id="information-stay" class="font-display text-2xl">Ihr Aufenthalt</h2>
<dl class="mt-4 grid grid-cols-[auto_1fr] gap-x-6 gap-y-1">
<dt class="text-muted">Anreise</dt><dd>{{ $booking->arrival->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_in_time) ab {{ substr($booking->property->check_in_time, 0, 5) }} Uhr @endif</dd>
<dt class="text-muted">Abreise</dt><dd>{{ $booking->departure->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_out_time) bis {{ substr($booking->property->check_out_time, 0, 5) }} Uhr @endif</dd>
<dt class="text-muted">Nächte</dt><dd>{{ $booking->nights() }}</dd>
<dt class="text-muted">Personen</dt><dd>{{ $booking->guests }}</dd>
<dt class="text-muted">Anfragen bis</dt><dd>{{ $booking->information_valid_until?->format('d.m.Y, H:i') }} Uhr</dd>
</dl>
<h2 class="mt-8 font-display text-2xl">Preis (Stand der Auskunft)</h2>
<table class="mt-3 w-full">
@foreach ($booking->quote['lines'] ?? [] as $line)
<tr class="border-b border-line"><td class="py-2">{{ $line['label'] }}</td><td class="py-2 text-right whitespace-nowrap">{{ $money($line['amount']) }}</td></tr>
@endforeach
<tr class="font-semibold"><td class="pt-3">Gesamtpreis</td><td class="pt-3 text-right">{{ $money((int) $booking->total) }}</td></tr>
</table>
<p class="mt-3 text-sm text-muted">Anzahlung {{ $money((int) $booking->deposit) }} nach der Buchungsbestätigung, Restbetrag {{ $money((int) $booking->total - (int) $booking->deposit) }} bis {{ $booking->balance_due_on?->format('d.m.Y') }}. Die Kurtaxe ist nicht enthalten und wird vor Ort entrichtet.</p>
@if ($booking->offer_message)
<p class="mt-6 rounded border border-line p-4">{{ $booking->offer_message }}</p>
@endif
@php($contractDocument = \App\Documents\OfferTerms::document($booking))
@if ($contractDocument)
<h2 class="mt-8 font-display text-2xl">Mietbedingungen</h2>
<div class="prose-theme mt-3">{!! $contractDocument['body'] !!}</div>
@if ($contractDocument['annex'])
<h3 class="mt-6 font-semibold">{{ $contractDocument['annex_title'] ?: 'Anlage' }}</h3>
<div class="prose-theme mt-2">{!! $contractDocument['annex'] !!}</div>
@endif
@else
<h2 class="mt-8 font-display text-2xl">Bedingungen</h2>
<div class="prose-theme mt-3">{{ $booking->offerHtml('contract.terms') }}</div>
@if ($booking->offerText('stay.cancellation'))
<h3 class="mt-6 font-semibold">Rücktritt / Stornierung</h3>
<div class="prose-theme mt-2">{{ $booking->offerHtml('stay.cancellation') }}</div>
@endif
@endif
</section>
@if ($canAsk && ! session('information.success'))
<section class="mt-8 rounded bg-surface p-7" aria-label="Buchung anfragen">
<form method="post" action="{{ $wishUrl }}">
@csrf
<label class="flex items-start gap-3">
<input type="checkbox" name="terms" value="1" required class="mt-1">
<span>Ich habe die Angaben und Bedingungen gelesen und möchte zu diesen Bedingungen buchen.</span>
</label>
@error('terms')<p class="mt-1 text-sm" role="alert">{{ $message }}</p>@enderror
<p class="mt-4 text-sm text-muted">Mit „Buchung anfragen“ senden Sie uns Ihren Buchungswunsch. Wir prüfen Verfügbarkeit und Preis erneut. Der Vertrag kommt erst mit unserer Buchungsbestätigung zustande, die Sie per E-Mail erhalten.</p>
<button type="submit" class="btn-accent mt-4 w-full sm:w-auto">Buchung anfragen</button>
</form>
</section>
@endif
<p class="mt-8 text-sm text-muted">Fragen? {{ $owner['name'] ?? '' }} · {{ $owner['phone'] ?? '' }} · <a class="underline" href="mailto:{{ $owner['email'] ?? '' }}">{{ $owner['email'] ?? '' }}</a></p>
</div>
@endsection