@php /** @var \App\Models\ExpenseReport $report */ /** @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 $managerSignatureDataUri */ /** @var ?string $accountingSignatureDataUri */ $money = static fn ($value): string => \App\Support\MoneyFormatter::format((float) $value, $company['currency'] ?? null); $lines = $report->lines; $location = collect([$company['city'], $company['country']])->filter()->implode(', '); @endphp Note de frais {{ $report->code }}
@include('pdf.partials.company-identity', ['company' => $company, 'showName' => true])

Note de frais

{{ $report->code }}

{{ $report->title }}
{{ $report->status->label() }}
Collaborateur
{{ $report->user?->name ?? '—' }}
@if ($report->submitted_at)
Soumise le {{ $report->submitted_at->format('d/m/Y') }}
@endif
@forelse ($lines as $index => $line) @empty @endforelse
# Date Catégorie Description Montant
{{ $index + 1 }} {{ $line->spent_at?->format('d/m/Y') ?? '—' }} {{ $line->category->label() }} {{ $line->description }} {{ $money($line->amount) }}
Aucune ligne
Total{{ $money($report->total_amount) }}
Manager
{{ $report->managerValidator?->name ?? '……………………' }} · {{ $report->manager_validated_at?->format('d/m/Y') ?? '………' }} @if ($managerSignatureDataUri) Signature @else
Signature
@endif
Comptabilité
{{ $report->accountingValidator?->name ?? '……………………' }} · {{ $report->accounting_validated_at?->format('d/m/Y') ?? '………' }} @if ($accountingSignatureDataUri) Signature @else
Signature
@endif