Facture
{{ $invoice->invoice_number }}
Émise le {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d/m/Y') }} @if(!empty($invoice->due_date))  •  Échéance {{ \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') }} @endif
Période {{ \Carbon\Carbon::parse($invoice->invoice_date)->locale('fr')->isoFormat('MMMM YYYY') }}
Type de vente {{ $invoice->sale_type ?? 'Prestations de services' }}
@if(!empty($brandLogoUrl)) @endif @if(!empty($brandName))
{{ $brandName }}
@endif

Émetteur

{{ $user->prenom }} {{ $user->nom }}

@if($worker && $worker->address_line1)

{{ $worker->address_line1 }}

@endif @if($worker && $worker->zip_code && $worker->city)

{{ $worker->zip_code }} {{ $worker->city }}

@endif @if($worker && $worker->country)

{{ $worker->country }}

@endif @if($worker && $worker->siret)

Nº SIRET : {{ \App\Models\Worker::formatSiret($worker->siret) }}

@endif @if($worker && $worker->vat_applicable && $worker->vat_number)

Nº TVA Intracom. : {{ $worker->vat_number }}

@endif

Client

{{ $invoice->client_name }}

{!! nl2br(e($invoice->client_address)) !!}

@if($invoice->client_siret) @php $siretParts = explode(':', $invoice->client_siret, 2); @endphp

@if(count($siretParts) === 2) {{ trim($siretParts[0]) }} : {{ trim($siretParts[1]) }} @else {{ $invoice->client_siret }} @endif

@endif
@foreach($invoice->line_items as $item) @endforeach
Description Quantité PU HT TVA Total HT
{{ $item['description'] }} @if(!empty($item['note']))
{{ $item['note'] }}
@endif
{{ $item['quantity'] }} {{ number_format($item['unit_price'], 2, ',', ' ') }} € {{ number_format($invoice->vat_rate, 0) }}% {{ number_format($item['total'], 2, ',', ' ') }} €
Modalités & Informations
• Paiement à 30 jours fin de mois
• Règlement par virement bancaire
@if($worker && $worker->iban)
Coordonnées bancaires
IBAN : {{ $worker->iban }}
@if($worker->bic)
BIC : {{ $worker->bic }}
@endif @if($worker->bank_name)
Banque : {{ $worker->bank_name }}
@endif @endif
@if((float)($invoice->vat_rate ?? 0) === 0.0)
TVA non applicable — art. 293 B du CGI
@endif
Dispense d'immatriculation au RCS et au RM
Indemnité forfaitaire de recouvrement : 40 € (art. L441-6 C. commerce)
@if(isset($invoice->discount_total) && $invoice->discount_total > 0) @endif @if(isset($invoice->shipping_total) && $invoice->shipping_total > 0) @endif
Sous-total HT {{ number_format($invoice->subtotal, 2, ',', ' ') }} €
TVA {{ number_format($invoice->vat_rate, 0) }}% @if((float)($invoice->vat_rate ?? 0) === 0.0) 0,00 € @else {{ number_format($invoice->vat_amount, 2, ',', ' ') }} € @endif
Remise -{{ number_format($invoice->discount_total, 2, ',', ' ') }} €
Frais {{ number_format($invoice->shipping_total, 2, ',', ' ') }} €
Total à payer {{ number_format($invoice->total, 2, ',', ' ') }} €