{{-- ─── HEADER ─────────────────────────────────────────── --}}
@if(file_exists(public_path('logo.png'))) @endif {{ $settings->entity_name ?? "Direction des Systèmes d'Information" }}
{{ $settings->entity_sub ?? "Communauté d'Agglomération Béziers Méditerranée" }} @if(!empty($settings->telephone))Téléphone : {{ $settings->telephone }}
@endif @if(!empty($settings->email))E-mail : {{ $settings->email }}
@endif @if(!empty($settings->adresse))Adresse : {{ $settings->adresse }}@endif
{{-- ─── INFO CARDS ──────────────────────────────────────── --}}
DEVIS N° : {{ $devis->number }}
DATE : {{ \Carbon\Carbon::parse($devis->date_devis)->format('d/m/Y') }}
OBJET : {{ $devis->title }} @if(!empty($devis->notes))
CONDITIONS : {{ $devis->notes }} @endif
DESTINATAIRE :
{{ $devis->destinataire_nom }} {{ $devis->destinataire_type === 'commune' ? 'Commune / Collectivité' : 'Service Interne' }} @if(!empty($devis->referent))
À L'ATTENTION DE : {{ $devis->referent }}
@endif
{{-- ─── TABLEAU LIGNES ──────────────────────────────────── --}} @foreach($devis->items as $item) @endforeach
Description : Prix Unitaire : Quantité : Total :
{{ $item['designation'] ?? '' }}
{{ $item['type'] ?? '' }}
{{ number_format($item['prix_unitaire'] ?? 0, 2, ',', "\xc2\xa0") }} € {{ $item['quantite'] ?? 0 }} {{ number_format(($item['quantite'] ?? 0) * ($item['prix_unitaire'] ?? 0), 2, ',', "\xc2\xa0") }} €
{{-- ─── TOTAUX ───────────────────────────────────────────── --}}
TOTAL HT : {{ number_format($devis->total_ht, 2, ',', "\xc2\xa0") }} €
TVA ({{ $devis->tva_rate }}%) : {{ number_format($devis->total_ttc - $devis->total_ht, 2, ',', "\xc2\xa0") }} €
TOTAL TTC : {{ number_format($devis->total_ttc, 2, ',', "\xc2\xa0") }} €
{{-- ─── FOOTER : SIGNATURE DESTINATAIRE ────────────────── --}}