@extends('emails.booking._layout') @php $maison = $booking->maison; $client = $booking->client; $clientName = trim(($client->first_name ?? '').' '.($client->last_name ?? '')) ?: $client->name; $breakdown = $booking->refundBreakdown(); $gold = 'color:#f8e7b0;'; $nights = __('mails.nights_count', ['count' => $booking->nights]); $period = __('mails.period', [ 'start' => $booking->start_date->format('d.m.Y'), 'end' => $booking->end_date->format('d.m.Y'), 'nights' => $nights, ]); @endphp @section('subject', __('mails.ccl_title')) @section('heading', __('mails.ccl_heading')) @section('body')

{!! __('mails.greeting', ['name' => ''.e($clientName).'']) !!}

{!! __('mails.ccl_intro', [ 'title' => ''.e($maison->title).'', 'period' => e($period), ]) !!}

{{ __('mails.ccl_refund_detail') }}

@if($breakdown['deposit'] > 0) @endif
{{ __('mails.ccl_row_stay', ['nights' => $nights]) }} {{ number_format($breakdown['stay'], 2, ',', ' ') }} {{ $booking->currency }}
{{ __('mails.ccl_row_commission') }} − {{ number_format($breakdown['commission'], 2, ',', ' ') }} {{ $booking->currency }}
{{ __('mails.ccl_row_deposit') }} {{ number_format($breakdown['deposit'], 2, ',', ' ') }} {{ $booking->currency }}
{{ __('mails.ccl_row_total') }} {{ number_format($breakdown['refund'], 2, ',', ' ') }} {{ $booking->currency }}

{{ __('mails.ccl_footer') }}

@endsection