@php($booking_files_count = 1) @if($booking->booking_applications) @foreach($booking->booking_applications as $booking_application) @endforeach @endif @if($booking->booking_confirmations) @foreach($booking->booking_confirmations as $booking_confirmation) @endforeach @endif @if($booking->booking_stornos) @foreach($booking->booking_stornos as $booking_storno) @endforeach @endif @if($booking->coupons) @foreach($booking->coupons as $coupon) @endforeach @endif @if($booking->booking_vouchers) @foreach($booking->booking_vouchers as $booking_voucher) @endforeach @endif @if($booking->insurance_certificates) @foreach($booking->insurance_certificates as $insurance_certificate) @endforeach @endif @if($security_certificate = \App\Models\CMSContent::getModelBySlug('sicherungsschein-nach-sis651r-pdf')) @endif @if($booking->booking_files) @foreach($booking->booking_files as $booking_file) @endforeach @endif
# Datei Inhalt Datum  
{{$booking_files_count++}} Reiseanmeldung GB: {{ \App\Services\Util::_number_format($booking_application->total)}} € {{\App\Services\Util::_format_date($booking_application->updated_at, 'date')}}
{{$booking_files_count++}} Reisebestätigung GP: {{ \App\Services\Util::_number_format($booking_confirmation->total)}} € | AZ: {{ \App\Services\Util::_number_format($booking_confirmation->deposit)}} € | RE: {{ \App\Services\Util::_number_format($booking_confirmation->final_payment)}} € {{\App\Services\Util::_format_date($booking_confirmation->updated_at, 'date')}}
{{$booking_files_count++}} Stornobestätigung Stornobetrag: {{ \App\Services\Util::_number_format($booking_storno->total)}} € {{\App\Services\Util::_format_date($booking_storno->updated_at, 'date')}}
{{$booking_files_count++}} Gutschein {{$coupon->number}} Wert: {{ \App\Services\Util::_number_format($coupon->value)}} € | bis: {{\App\Services\Util::_format_date($coupon->valid_date, 'date')}} | @if($coupon->is_redeemed) {{\App\Services\Util::_format_date($coupon->redeem_date, 'date')}} @else @endif {{\App\Services\Util::_format_date($coupon->issue_date, 'date')}}
{{$booking_files_count++}} Voucher-ID {{$booking_voucher->id}}   {{\App\Services\Util::_format_date($booking_voucher->updated_at, 'date')}}
{{$booking_files_count++}} Sicherungsschein Nr. {{$insurance_certificate->internal_id}}   {{\App\Services\Util::_format_date($insurance_certificate->updated_at, 'date')}}
{{$booking_files_count++}} {{$security_certificate->name}} {{ $security_certificate->formatBytes() }} {{\App\Services\Util::_format_date($security_certificate->created_at, 'date')}}
{{$booking_files_count++}} {{ $booking_file->original_name }} {{ $booking_file->mine }} | {{ $booking_file->formatBytes() }} {{\App\Services\Util::_format_date($booking_file->created_at, 'date')}}