@php($document = \App\Documents\OfferTerms::document($booking))

Der Vertragstext, wie er beim Angebot festgehalten wurde (Stand {{ \Carbon\CarbonImmutable::parse($booking->offer_terms['captured_at'])->format('d.m.Y, H:i') }} Uhr). @if ($booking->offer_hash) Prüfsumme des Angebots: {{ substr($booking->offer_hash, 0, 16) }}… @endif

@if ($document)
{!! $document['body'] !!}
@if ($document['annex'])

{{ $document['annex_title'] ?: 'Anlage' }}

{!! $document['annex'] !!}
@endif @else
{{ $booking->offerHtml('contract.terms') }}
@if ($booking->offerText('stay.cancellation'))

Rücktritt / Stornierung

{{ $booking->offerHtml('stay.cancellation') }}
@endif @endif @foreach (\App\Documents\OfferTerms::annexes($booking) as $extraAnnex)

Anlage: {{ $extraAnnex['title'] }} (Version {{ $extraAnnex['version'] }})

{!! $extraAnnex['html'] !!}
@endforeach