@extends('emails.booking._layout') @php $maison = $booking->maison; $owner = $maison->owner; $client = $booking->client; $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.pcl_title')) @section('heading', __('mails.pcl_heading')) @section('body')

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

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

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

@if($ownerName)

{{ __('mails.lbl_name') }} {{ $ownerName }}

@endif @if($owner->email)

{{ __('mails.lbl_email') }} {{ $owner->email }}

@endif @if($owner->phone)

{{ __('mails.lbl_phone') }} {{ $owner->phone }}

@endif

{{ __('mails.lbl_housing') }} {{ $maison->address }} {{ $maison->postal_code }} {{ $maison->city }} {{ $maison->country }}

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

{{ __('mails.lbl_dates') }} {{ $period }}

{{ __('mails.lbl_amount_paid') }} {{ number_format($booking->total_amount, 2, ',', ' ') }} {{ $booking->currency }}

@endsection