@if(!empty($mailParams['web']))
@else
@endif
{{ __('general-hi') }}, {{$mailParams['name_surname']}}
{!! $bookingData !!}
@if($mailParams['bookingChannelId'] != 1 || true)
{{__('mail-booking-channel')}}:
{{$mailParams['bookingChannelName']}}
@if(!empty($mailParams['bookingChannelCode']))
{{__('mail-booking-confirmation-code')}}:
{{$mailParams['bookingChannelCode']}}
@endif
{{__('mail-booking-name-surname')}}:
{{$mailParams['bookingChannelContactNameSurname']}} @if(!empty($mailParams['countryCode'])) ({{$mailParams['countryCode']}}) @endif
@if(!empty($mailParams['bookingChannelContactEmail']))
{{__('mail-booking-email')}}:
{{fillOnUndefined($mailParams,'bookingChannelContactEmail', '-')}}
@endif @if(!empty($mailParams['bookingChannelContactPhone']))
{{__('mail-booking-phone')}}:
{{fillOnUndefined($mailParams,'bookingChannelContactPhone', '-')}}
@endif @if(isset($mailParams['isBookingGenius']) && $mailParams['isBookingGenius'])
Booking.com Genius
@endif
{{__('mail-booking-checkin')}}:
{{$mailParams['checkin_date']}}
{{__('mail-booking-checkout')}}:
{{$mailParams['checkout_date']}}
@foreach($mailParams['bookingChannelRoom'] as $perRoom)
{{__('mail-booking-room_order', ['order' => $perRoom['roomOrder']])}}:
{{$perRoom['roomName']}}
{{$perRoom['roomRateName']}}
{{__('mail-booking-occupany')}}:
{{$perRoom['occupancyText']}}
@if(isset($perRoom['cancellationPolicy']) && !empty($perRoom['cancellationPolicy']))
{{__('enw-offer-cancellation_policy-title')}}:
{{$perRoom['cancellationPolicy']}}
@endif @foreach($perRoom['dailyAmount'] as $dailyAmount)
{{\Carbon\Carbon::parse($dailyAmount['date'])->format('d.m.Y')}}
{{floatval($dailyAmount['amount'])}} {{$dailyAmount['currency_code']}}
@endforeach
@if(isset($perRoom['additionalFee']) && !empty($perRoom['additionalFee']))
@foreach($perRoom['additionalFee'] as $additionalFeeKey => $additionalFee)
Fee Type:
{{$additionalFee['name']}}
@if($additionalFee['is_inclusive'])
Included:
@if($additionalFee['is_inclusive']) Yes @else No @endif
@else
Total:
{{$additionalFee['total_price']}} {{$mailParams['currency_code']}}
@endif @endforeach
@endif @if(!empty($perRoom['discount_amount']) || $perRoom['discount_amount'] > 0)
{{__('mail-booking-discount')}}:
- {{$perRoom['discount_amount']}} {{$perRoom['currencyCode']}}
{{__('mail-booking-total')}}:
{{$perRoom['total']}} {{$perRoom['currencyCode']}}
@else
{{__('mail-booking-total')}}:
{{$perRoom['total']}} {{$perRoom['currencyCode']}}
@endif
@if(isset($perRoom['extraParam']) && !empty($perRoom['extraParam']))
@foreach($perRoom['extraParam'] as $extraParamKey => $extraParam)
{{$extraParam['title']}}
@if($extraParamKey == 'cancel_penalties')
@foreach($extraParam['value'] as $policyKey => $policyValue)
From {{\Carbon\Carbon::parse($policyValue['from'])->format('M, d Y - H:i:s')}}
{{$policyValue['amount']}} {{strtoupper($policyValue['currency'])}}
@endforeach
@else {!! $extraParam['value'] !!} @endif
@endforeach
@endif @endforeach @if(isset($mailParams['bookingAddon']) && !empty($mailParams['bookingAddon']))
{{__('be-label-additional-products')}}
@foreach($mailParams['bookingAddon'] as $bookingAddonKey => $bookingAddon)
{{__($bookingAddon['language_key'])}}
@if(!empty($bookingAddon['title']))
{{$bookingAddon['title']}}
@else
{{__($bookingAddon['language_key'])}}
@endif
{{$bookingAddon['count']}} x {{$bookingAddon['amount']}} {{strtoupper($bookingAddon['currency_code'])}}
{{$bookingAddon['total']}} {{strtoupper($bookingAddon['currency_code'])}}
@endforeach
@endif
{{__('mail-booking-grand_total')}}:
{{$mailParams['total']}} {{$mailParams['currency_code']}}
@if($mailParams['payment_type_code'] != 'CHN')
@if($mailParams['payment_type_code'] == 'HTL') @if(isset($mailParams['payAtHotelCreditCardCheck']) && !$mailParams['payAtHotelCreditCardCheck'])
{{__('mail-booking-payment')}}:
{!! $mailParams['bookingChannelPaymentType'] !!}
@endif @else
{{__('mail-booking-payment')}}:
{!! $mailParams['bookingChannelPaymentType'] !!}
@endif
@if(!empty($mailParams['bookingChannelPaymentSource']))
{{__('mail-booking-payment_source')}}:
{!! $mailParams['bookingChannelPaymentSource'] !!}
@endif
@endif @if(isset($mailParams['creditCardInformation']) && !empty($mailParams['creditCardInformation']))
{{__('mail-booking-cardholder_name')}}:
{{$mailParams['creditCardInformation']['cardHolderName']}}
{{__('mail-booking-card_number')}}:
{{$mailParams['creditCardInformation']['cardNumber']}}
{{__('mail-booking-expiration_date')}}:
{{$mailParams['creditCardInformation']['expirationDate']}}
@if(!empty($mailParams['showCreditCardUrl']))
{{__('mail-booking-show_credit_card_info')}}
@endif
@endif @if(!empty($mailParams['bookingChannelNote']))
{{__('mail-booking-note')}}:
{!! $mailParams['bookingChannelNote'] !!}
@endif
@endif {{ __('api-mailling-booking-access_link-desc') }}
{{ __('api-mailling-booking_info-link') }}
{{$mailParams['property_name']}}
{{date('Y-m-d H:i:s')}}