@extends('emails.booking._layout') @php $maison = $booking->maison; $client = $booking->client; $clientName = trim(($client->first_name ?? '').' '.($client->last_name ?? '')) ?: $client->name; $ownerName = $maison->owner->first_name ?? $maison->owner->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.pow_title')) @section('heading', __('mails.pow_heading')) @section('body')

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

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

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

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

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

@if($client->phone)

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

@endif @if($client->address)

{{ __('mails.lbl_address') }} {{ $client->address }} {{ $client->postal_code }} {{ $client->city }} {{ $client->country }}

@endif

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

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

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

@endsection