@php /** @var \App\Models\Invoice $invoice */ /** @var array{name: string, legal_name: string, address: ?string, city: ?string, country: ?string, phone: ?string, email: ?string, website: ?string, tax_id: ?string, registration: ?string} $company */ /** @var ?string $validatorSignatureDataUri */ $money = static fn ($value): string => \App\Support\MoneyFormatter::format((float) $value, $company['currency'] ?? null); $lines = $invoice->lines; $location = collect([$company['city'], $company['country']])->filter()->implode(', '); $customer = $invoice->customer; @endphp
| @include('pdf.partials.company-identity', ['company' => $company, 'showName' => true]) |
Facture {{ $invoice->code }} |
| # | Désignation | Qté | PU HT | Rem. | TVA | Total TTC |
|---|---|---|---|---|---|---|
| {{ $index + 1 }} | @if ($line->product) {{ $line->product->code }} — @endif {{ $line->description }} | {{ number_format((float) $line->quantity, 0, ',', ' ') }} | {{ $money($line->unit_price) }} | {{ number_format((float) $line->discount_rate, 0) }}% | {{ number_format((float) $line->tax_rate, 0) }}% | {{ $money($line->line_total) }} |
| Sous-total HT | {{ $money($invoice->subtotal + $invoice->discount_amount) }} |
| Remise globale | - {{ $money($invoice->discount_amount) }} |
| Total HT | {{ $money($invoice->subtotal) }} |
| TVA | {{ $money($invoice->tax_amount) }} |
| Total TTC | {{ $money($invoice->total_amount) }} |
| Déjà payé | {{ $money($invoice->amount_paid) }} |
| Reste dû | {{ $money($invoice->balanceDue()) }} |
Notes : {{ $invoice->notes }}
@endif|
Émetteur
{{ $invoice->validator?->name ?? '……………………' }}
· {{ $invoice->validated_at?->format('d/m/Y') ?? '………' }}
@if ($validatorSignatureDataUri)
Signature
@endif
|