@php $maison = $booking->maison; $owner = $maison->owner ?? null; $client = $booking->client; $curSymbols = ['EUR' => '€', 'USD' => '$', 'GBP' => '£', 'CHF' => 'CHF']; $cur = $booking->currency ?: 'EUR'; $sym = $curSymbols[$cur] ?? $cur; $money = function ($amount) use ($sym) { return number_format((float) $amount, 2, ',', ' ') . ' ' . $sym; }; $stayTotal = (float) $booking->nightly_price * (int) $booking->nights; $ownerName = trim(($owner->first_name ?? '') . ' ' . ($owner->last_name ?? '')) ?: ($owner->name ?? config('app.name')); $clientName = trim(($client->first_name ?? '') . ' ' . ($client->last_name ?? '')) ?: ($client->name ?? 'Client'); $issuedOn = $booking->paid_at ?? $booking->created_at; @endphp
Logo
{{ __('messages.billing') }} • {{ __('messages.client_document') }}
{{ __('messages.rental_host') }}
{{ $ownerName }}
@if(!empty($owner?->company))
{{ $owner->company }}
@endif @if(!empty($owner?->address))
{{ $owner->address }}
@endif @if(!empty($owner?->postal_code) || !empty($owner?->city))
{{ $owner->postal_code ?? '' }} {{ $owner->city ?? '' }} {{ $owner->country ?? '' }}
@endif @if(!empty($owner?->email))
{{ $owner->email }}
@endif @if(!empty($owner?->phone))
{{ $owner->phone }}
@endif @if(!empty($owner?->siret))
SIRET : {{ $owner->siret }}
@endif @if(!empty($owner?->vat_number))
TVA : {{ $owner->vat_number }}
@endif
{{ __('messages.accounting_document') }}

{{ __('messages.invoice_invoice') }}

N° LOC-{{ $booking->id }}
{{ __('messages.issued_on') }} {{ optional($issuedOn)->format('d.m.Y') }}
{{ __('messages.paid') }}
{{ __('messages.client') }}
{{ $clientName }}
@if(!empty($client->address)){{ $client->address }}
@endif @if(!empty($client->postal_code) || !empty($client->city)){{ $client->postal_code ?? '' }} {{ $client->city ?? '' }} {{ $client->country }}
@endif @if(!empty($client->email)){{ $client->email }}
@endif @if(!empty($client->phone)){{ $client->phone }}@endif
{{ __('messages.rental_reservation') }}
{{ $maison->title }}
{{ __('viki.cal_from') }} {{ $booking->start_date->format('d/m/Y') }}
{{ __('viki.cal_to_lc') }} {{ $booking->end_date->format('d/m/Y') }}
{{ $booking->nights }} {{ __('viki.detail_nights') }}
{{ __('messages.regulation') }}
{{ __('messages.total_amount') }} {{ $money($booking->total_amount) }}
{{ __('messages.statut_order_details') }} {{ __('messages.paid') }}
@if($booking->cleaning_fee > 0) @endif @if($booking->deposit > 0) @endif
{{ __('messages.designation') }} {{ __('messages.quantity') }} {{ __('messages.unit_price') }} {{ __('messages.amount') }}
{{ __('messages.rental_stay') }} — {{ $maison->title }}
{{ $booking->start_date->format('d/m/Y') }} → {{ $booking->end_date->format('d/m/Y') }} @if($maison->city) · {{ $maison->city }} @endif
{{ $booking->nights }} {{ $money($booking->nightly_price) }} {{ $money($stayTotal) }}
{{ __('viki.detail_cleaning_fee') }}
1 {{ $money($booking->cleaning_fee) }} {{ $money($booking->cleaning_fee) }}
{{ __('viki.detail_deposit') }}
1 {{ $money($booking->deposit) }} {{ $money($booking->deposit) }}
{{ __('messages.note') }}
{{ __('messages.thanks_for_order') }}
{{ __('messages.invoice_to_reference') }} LOC-{{ $booking->id }}.
@if($booking->cleaning_fee > 0) @endif @if($booking->deposit > 0) @endif
{{ __('messages.rental_stay') }} {{ $money($stayTotal) }}
{{ __('viki.detail_cleaning_fee') }} {{ $money($booking->cleaning_fee) }}
{{ __('viki.detail_deposit') }} {{ $money($booking->deposit) }}
{{ __('messages.total_ttc') }} {{ $money($booking->total_amount) }}