Vertragsvorlagen als ganzes Dokument mit Platzhaltern, Wohnungsdaten, Portal-Zuordnung
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 3m38s
- Vorlage = kompletter Vertragstext plus Anlage mit Platzhaltern ({{ mieter }}, {{ anreise }}, {{ wohnung.x }}),
eigene Vertrags-PDF, Anzeige auf der Angebotsseite; Text und Wohnungsdaten werden beim Angebot eingefroren
- Wohnungsdaten (WLAN, Codes, ...) als Vertragsdaten der Wohnung statt im Vorlagentext
- Je Portal eigene Vorlage fuer Anfragen und fuer beim Portal verbindliche Buchungen; direkte Bestaetigung
nutzt dieselbe Aufloesung; Bestaetigungsmail ohne Zahlungsanweisung bei Portalzahlung
- Befehl contracts:install-fewo-direkt legt die FeWo-direkt-Vorlage aus dem Vertragstext des Vermieters an
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a73b164ea1
commit
89d569b6c8
17 files changed
+648
-28
No files matched your search
@@ -16,6 +16,7 @@
|
||||
|
||||
@include('mail.partials.quote')
|
||||
|
||||
@if ($booking->wantsPaymentTasks())
|
||||
## Zahlung
|
||||
|
||||
@if ($booking->requiresFullPayment())
|
||||
@@ -25,6 +26,7 @@
|
||||
@endif
|
||||
|
||||
@include('mail.partials.bank')
|
||||
@endif
|
||||
|
||||
Ihren **Mietvertrag** finden Sie als PDF im Anhang.
|
||||
|
||||
|
||||
@@ -61,11 +61,21 @@
|
||||
<p class="mt-6 rounded border border-line p-4">{{ $booking->offer_message }}</p>
|
||||
@endif
|
||||
|
||||
<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>
|
||||
@php($contractDocument = \App\Documents\OfferTerms::document($booking))
|
||||
@if ($contractDocument)
|
||||
<h2 class="mt-8 font-display text-2xl">Mietvertrag</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
|
||||
<p class="mt-4 text-sm text-muted">Den vollständigen Vertragsentwurf finden Sie als PDF im Anhang unserer E-Mail.</p>
|
||||
</section>
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
@php($owner = \App\Documents\OfferTerms::owner($booking))
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Mietvertrag {{ $booking->reference }}</title>
|
||||
<style>
|
||||
@page { margin: 22mm 20mm 20mm 20mm; }
|
||||
body { font-family: 'DejaVu Serif', serif; font-size: 10pt; color: #111; line-height: 1.4; }
|
||||
h1 { font-size: 17pt; margin: 0 0 4mm; text-align: center; }
|
||||
h2, h3 { font-size: 10.5pt; margin: 5mm 0 1mm; }
|
||||
p { margin: 0 0 2mm; }
|
||||
ul, ol { margin: 0 0 2mm 5mm; padding: 0; }
|
||||
.muted { color: #5f6b73; font-size: 8.5pt; text-align: center; }
|
||||
.annex { page-break-before: always; }
|
||||
.footer { position: fixed; bottom: -12mm; left: 0; right: 0; font-size: 7.5pt; color: #8a959c; text-align: center; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="footer">{{ $owner['name'] ?? '' }} · {{ $owner['street'] ?? '' }} · {{ $owner['city'] ?? '' }} · {{ $owner['phone'] ?? '' }} · {{ $owner['email'] ?? '' }}</div>
|
||||
|
||||
@if ($logo ?? null)
|
||||
<img src="{{ $logo }}" alt="" style="max-height: 18mm; max-width: 60mm; margin-bottom: 4mm;">
|
||||
@endif
|
||||
|
||||
<h1>Mietvertrag</h1>
|
||||
@if ($draft ?? false)
|
||||
<p class="muted">Angebot {{ $booking->reference }} · Version {{ $booking->offer_version }} · gültig bis {{ $booking->hold_expires_at?->format('d.m.Y, H:i') }} Uhr · Entwurf bis zur Annahme</p>
|
||||
@elseif ($booking->accepted_at)
|
||||
<p class="muted">Buchungsnummer {{ $booking->reference }} · Angebot angenommen am {{ $booking->accepted_at->format('d.m.Y, H:i') }} Uhr</p>
|
||||
@else
|
||||
<p class="muted">Buchungsnummer {{ $booking->reference }}</p>
|
||||
@endif
|
||||
|
||||
<div>{!! $document['body'] !!}</div>
|
||||
|
||||
@if ($document['annex'])
|
||||
<div class="annex">
|
||||
@if ($document['annex_title'])
|
||||
<h1>{{ $document['annex_title'] }}</h1>
|
||||
@endif
|
||||
{!! $document['annex'] !!}
|
||||
</div>
|
||||
@endif
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user