@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;'; $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.cow_title')) @section('heading', __('mails.cow_heading')) @section('body')
{!! __('mails.greeting', ['name' => ''.e($ownerName).'']) !!}
{!! __('mails.cow_intro', [ 'client' => ''.e($clientName).'', 'title' => ''.e($maison->title).'', 'period' => e($period), ]) !!}
@if($booking->cancellation_reason){!! __('mails.cow_reason', ['reason' => ''.e($booking->cancellation_reason).'']) !!}
@endif{!! __('mails.cow_no_payout', [ 'highlight' => ''.e(__('mails.cow_no_payout_highlight')).'', ]) !!}
{{ __('mails.cow_dates_released', ['app' => config('app.name')]) }}
@endsection