{{$mailParams['property_name']}}

{!! __('api-mailing-booking-modified_booking-info', ['code' => $mailParams['bookingChannelCode'], 'channel' => $mailParams['bookingChannelName'], 'nameSurname' => $mailParams['name_surname']]) !!}

@if($mailParams['bookingChannelId'] != 1 || true)
@if(!empty($mailParams['bookingChannelCode'])) @endif @if(!empty($mailParams['bookingChannelContactEmail'])) @endif @if(!empty($mailParams['bookingChannelContactPhone'])) @endif @if(isset($mailParams['isBookingGenius']) && $mailParams['isBookingGenius']) @endif
{{__('mail-booking-channel')}}: {{$mailParams['bookingChannelName']}}
{{__('mail-booking-confirmation-code')}}: {{$mailParams['bookingChannelCode']}}
Extranetwork Code: {{$mailParams['bookingCode']}}
 
{{__('mail-booking-name-surname')}}: {{$mailParams['bookingChannelContactNameSurname']}} @if(!empty($mailParams['countryCode'])) ({{$mailParams['countryCode']}}) @endif
{{__('mail-booking-email')}}: {{fillOnUndefined($mailParams,'bookingChannelContactEmail', '-')}}
{{__('mail-booking-phone')}}: {{fillOnUndefined($mailParams,'bookingChannelContactPhone', '-')}}
Booking.com Genius
 
{{__('mail-booking-checkin')}}: {{$mailParams['checkin_date']}}
{{__('mail-booking-checkout')}}: {{$mailParams['checkout_date']}}
@foreach($mailParams['bookingChannelRoom'] as $perRoom) @if(isset($perRoom['dailyAmount'])) @foreach($perRoom['dailyAmount'] as $dailyAmount) @endforeach @if(isset($perRoom['additionalFee']) && !empty($perRoom['additionalFee'])) @endif @if(!empty($perRoom['discount_amount']) || $perRoom['discount_amount'] > 0) @else @endif @endif
{{__('mail-booking-room_order', ['order' => $perRoom['roomOrder']])}}: {{$perRoom['roomName']}} {{$perRoom['roomRateName']}}
{{__('mail-booking-occupany')}}: {{$perRoom['occupancyText']}}
{{\Carbon\Carbon::parse($dailyAmount['date'])->format('d.m.Y')}} {{floatval($dailyAmount['amount'])}} {{$dailyAmount['currency_code']}}

@foreach($perRoom['additionalFee'] as $additionalFeeKey => $additionalFee) @if($additionalFee['is_inclusive']) @else @endif @endforeach
Fee Type: {{$additionalFee['name']}}
Included: @if($additionalFee['is_inclusive']) Yes @else No @endif
Total: {{$additionalFee['total_price']}} {{$mailParams['currency_code']}}

{{__('mail-booking-discount')}}: - {{$perRoom['discount_amount']}} {{$perRoom['currencyCode']}}
{{__('mail-booking-total')}}: {{$perRoom['total']}} {{$perRoom['currencyCode']}}
{{__('mail-booking-total')}}: {{$perRoom['total']}} {{$perRoom['currencyCode']}}
@if(isset($perRoom['extraParam']) && !empty($perRoom['extraParam'])) @foreach($perRoom['extraParam'] as $extraParamKey => $extraParam) @endforeach
{{$extraParam['title']}} @if($extraParamKey == 'cancel_penalties') @foreach($extraParam['value'] as $policyKey => $policyValue) @endforeach
From {{\Carbon\Carbon::parse($policyValue['from'])->format('M, d Y - H:i:s')}} {{$policyValue['amount']}} {{strtoupper($policyValue['currency'])}}
@else {!! $extraParam['value'] !!} @endif

@endif @endforeach
{{__('mail-booking-grand_total')}}: {{$mailParams['total']}} {{$mailParams['currency_code']}}
@if($mailParams['payment_type_code'] != 'CHN')
{{__('mail-booking-payment')}}: {!! $mailParams['bookingChannelPaymentType'] !!}
@if(!empty($mailParams['bookingChannelPaymentSource'])) {{__('mail-booking-payment_source')}}: {!! $mailParams['bookingChannelPaymentSource'] !!}
@endif
@endif @if(isset($mailParams['creditCardInformation']) && !empty($mailParams['creditCardInformation'])) @if(!empty($mailParams['showCreditCardUrl'])) @endif
{{__('mail-booking-cardholder_name')}}: {{$mailParams['creditCardInformation']['cardHolderName']}}
{{__('mail-booking-card_number')}}: {{$mailParams['creditCardInformation']['cardNumber']}}
{{__('mail-booking-expiration_date')}}: {{$mailParams['creditCardInformation']['expirationDate']}}
@endif @if(!empty($mailParams['bookingChannelNote']))
{{__('mail-booking-note')}}:

{!! $mailParams['bookingChannelNote'] !!}

@endif
@endif

{{$mailParams['property_name']}}
{{date('Y-m-d H:i:s')}}