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

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

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

@if($claim->reason)

{!! __('mails.clm_reason', ['reason' => ''.e($claim->reason).'']) !!}

@endif

{{ __('mails.clm_attached', ['file' => $claim->filename]) }}

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

{{ __('mails.clm_if_approved') }} {{ number_format($breakdown['refund'], 2, ',', ' ') }} {{ $booking->currency }}
{{ __('mails.clm_if_rejected') }} {{ number_format(0, 2, ',', ' ') }} {{ $booking->currency }}

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

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

@endsection