@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($booking->travel_insurances) @foreach($booking->travel_insurances as $travel_insurances) @endforeach @endif @foreach(\App\Services\Booking::contentFiles() as $content_file) @if($file = \App\Models\CMSContent::getModelBySlug($content_file)) @endif @endforeach @foreach($booking->travel_country->getContactLandsModels() as $TravelCountry) @if($TravelCountry->stern_travel_country) @foreach($TravelCountry->stern_travel_country->general_files as $general_files) @endforeach @endif @endforeach @if($booking->booking_files) @foreach($booking->booking_files as $booking_file) @endforeach @endif
# Datei Inhalt Datum  
{{$booking_files_count++}} Reiseanmeldung Gesamtpreis: {{ \App\Services\Util::_number_format($booking_application->total)}} € {{\App\Services\Util::_format_date($booking_application->updated_at, 'date')}}
{{$booking_files_count++}} Reisebestätigung Gesamtpreis: {{ \App\Services\Util::_number_format($booking_confirmation->total)}} € | Anzahlung: {{ \App\Services\Util::_number_format($booking_confirmation->deposit)}} € | Restzahlung: {{ \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++}} Policennummer {{$travel_insurances->policy_number}} Gesamtprämie: {{ \App\Services\Util::_number_format($travel_insurances->premium)}} € {{\App\Services\Util::_format_date($travel_insurances->updated_at, 'date')}}  
{{$booking_files_count++}} {{$file->name}} @if(Auth::user()->isPermission('sua-st-em')) E-Mails | @endif {{ $file->formatBytes() }} {{\App\Services\Util::_format_date($file->created_at, 'date')}}
{{$booking_files_count++}} {{$general_files->original_name}} @if(Auth::user()->isPermission('sua-st-co')) {{$TravelCountry->stern_travel_country->name }} | @endif {{ $general_files->mine }} | {{ $general_files->formatBytes() }} {{\App\Services\Util::_format_date($general_files->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')}}
@if(Auth::user()->isPermission('sua-st-em')) @endif @if(Auth::user()->isPermission('sua-st-co'))
Landesspezifische Dateien unter: Einstellungen -> Reieseländer
@endif