FACTURE

{{ $facture->centre->nom }}

Adresse: {{ $facture->centre->adresse ?? 'Non spécifiée' }}
Tél: {{ $facture->centre->telephone ?? 'Non spécifié' }}
Email: {{ $facture->centre->email ?? 'Non spécifié' }}

Facture #{{ $facture->numero_facture }}

Date: {{ \Carbon\Carbon::parse($facture->date_creation)->locale('fr')->isoFormat('D MMM YYYY HH:mm') }}

INFORMATIONS PATIENT

Nom: {{ $facture->patient->nom }} {{ $facture->patient->prenom }}
Naissance: {{ \Carbon\Carbon::parse($facture->patient->date_naissance)->format('d/m/Y') }}
Sexe: {{ ucfirst($facture->patient->sexe) }}
Adresse: {{ $facture->patient->adresse ?? 'Non spécifiée' }}
Tél: {{ $facture->patient->telephone ?? 'Non spécifié' }}
Email: {{ $facture->patient->email ?? 'Non spécifié' }}

DÉTAIL DES PRESTATIONS

@php $currentCategory = null; $currentSubcategory = null; @endphp @foreach($facture->lignes as $ligne) @if($ligne->service->categorie && $ligne->service->categorie->nom != $currentCategory) @php $currentCategory = $ligne->service->categorie->nom; @endphp @endif @if($ligne->service->sousCategorie && $ligne->service->sousCategorie->nom != $currentSubcategory) @php $currentSubcategory = $ligne->service->sousCategorie->nom; @endphp @endif @endforeach
Service Catégorie Sous-catégorie Qté Prix U. Total
{{ $ligne->service->categorie->nom }}
{{ $ligne->service->sousCategorie->nom }}
{{ $ligne->service->nom }} {{ $ligne->service->categorie->nom ?? '-' }} {{ $ligne->service->sousCategorie->nom ?? '-' }} {{ $ligne->quantite }} {{ number_format($ligne->prix_unitaire, 0, ',', ' ') }} € {{ number_format($ligne->quantite * $ligne->prix_unitaire, 0, ',', ' ') }} €
@if($facture->pourcentage_reduction > 0) @endif @if(($facture->montant_total - ($facture->montant_total * $facture->pourcentage_reduction / 100)) > $facture->montant_paye) @endif
Total HT: {{ number_format($facture->montant_total, 0, ',', ' ') }} €
Réduction ({{ $facture->pourcentage_reduction }}%): - {{ number_format($facture->montant_total * $facture->pourcentage_reduction / 100, 0, ',', ' ') }} €
Montant TTC: {{ number_format($facture->montant_total - ($facture->montant_total * $facture->pourcentage_reduction / 100), 0, ',', ' ') }} €
Montant Payé: {{ number_format($facture->montant_paye, 0, ',', ' ') }} €
Reste à Payer: {{ number_format(($facture->montant_total - ($facture->montant_total * $facture->pourcentage_reduction / 100)) - $facture->montant_paye, 0, ',', ' ') }} €
Mode de paiement: {{ $facture->mode_paiement }}
@if($facture->reference_paiement)
Référence: {{ $facture->reference_paiement }}
@endif
Statut: {{ ucfirst($facture->statut) }}