{{ $bon->num_bon_sys ?: 'BON SYSTEME' }}
ORIGINAL
ORIGINAL
@if(file_exists(public_path('assets/images/itra_entete.jpg')))
Entete
@endif

STATION ITRACOM

Bon à servir carburant

N° Système: {{ $bon->num_bon_sys ?: 'N/A' }} | N° Bon: {{ $bon->numero_bon_a_servir }}
@php $type_carb = DB::table('carburants')->where('id_carburant', $bon->id_type_carburant)->first(); $type_carb_name = ($bon->id_type_carburant == 1) ? 'd\'essence' : 'de Gasoil'; @endphp
Veuillez livrer contre ce bon une quantité de {{ number_format($bon->quantite_a_servir, 2, ',', ' ') }} L ({{ $montant_lettre }} Litres) {{ $type_carb_name }} à l'ordre de {{ $bon->mandaterpar ?: 'ITRACOM' }}
Propriétaire: {{ $bon->mandaterpar ?: 'ITRACOM' }}
Responsable commande: {{ $bon->responsable_commande ?: 'N/A' }}
Tél: {{ $bon->telephone_responsable ?: 'N/A' }}
@php $marque = DB::table('vehicules') ->leftJoin('marques', 'vehicules.marque_id', '=', 'marques.mid') ->where('vehicules.id_vehicule', $bon->id_vehicule) ->value('marques.marque'); $plaque = DB::table('vehicules') ->where('id_vehicule', $bon->id_vehicule) ->value('num_immatriculation'); @endphp Plaque n°: {{ $plaque ?: 'N/A' }}
Marque véhicule: {{ $marque ?: 'N/A' }}
@if($bon->quantite_servie > 0)
Quantité servie: {{ number_format($bon->quantite_servie, 2, ',', ' ') }} Litres @if($bon->quantite_annuler > 0) | Quantité annulée: {{ number_format($bon->quantite_annuler, 2, ',', ' ') }} Litres @endif
@endif @if($bon->pu > 0)
Prix unitaire: {{ number_format($bon->pu, 0, ',', ' ') }} Fbu/L
Montant à payer: {{ number_format($bon->montant_a_payer, 0, ',', ' ') }} Fbu @if($bon->montant_payer > 0) | Montant payé: {{ number_format($bon->montant_payer, 0, ',', ' ') }} Fbu @endif
@endif @if($bon->id_mode_paiement > 0)
Mode de paiement: @php $mode_paiement = DB::table('mode_paiements')->where('id_mode_paiement', $bon->id_mode_paiement)->first(); @endphp {{ $mode_paiement ? $mode_paiement->nom_mode : 'N/A' }}
@endif @if($bon->description)
Description : {{ $bon->description }}
@endif
✂️ --- COUPER ICI / CUT HERE --- ✂️
{{ $bon->num_bon_sys ?: 'BON SYSTEME' }}
DUPLICATA
DUPLICATA
@if(file_exists(public_path('assets/images/itra_entete.jpg')))
Entete
@endif

STATION ITRACOM

Bon à servir carburant - DUPLICATA

N° Système: {{ $bon->num_bon_sys ?: 'N/A' }} | N° Bon: {{ $bon->numero_bon_a_servir }}
@php $type_carb = DB::table('carburants')->where('id_carburant', $bon->id_type_carburant)->first(); $type_carb_name = ($bon->id_type_carburant == 1) ? 'd\'essence' : 'de Gasoil'; @endphp
Veuillez livrer contre ce bon une quantité de {{ number_format($bon->quantite_a_servir, 2, ',', ' ') }} L ({{ $montant_lettre }} Litres) {{ $type_carb_name }} à l'ordre de {{ $bon->mandaterpar ?: 'ITRACOM' }}
Propriétaire: {{ $bon->mandaterpar ?: 'ITRACOM' }}
Responsable commande: {{ $bon->responsable_commande ?: 'N/A' }}
Tél: {{ $bon->telephone_responsable ?: 'N/A' }}
@php $marque = DB::table('vehicules') ->leftJoin('marques', 'vehicules.marque_id', '=', 'marques.mid') ->where('vehicules.id_vehicule', $bon->id_vehicule) ->value('marques.marque'); $plaque = DB::table('vehicules') ->where('id_vehicule', $bon->id_vehicule) ->value('num_immatriculation'); @endphp Plaque n°: {{ $plaque ?: 'N/A' }}
Marque véhicule: {{ $marque ?: 'N/A' }}
@if($bon->quantite_servie > 0)
Quantité servie: {{ number_format($bon->quantite_servie, 2, ',', ' ') }} Litres @if($bon->quantite_annuler > 0) | Quantité annulée: {{ number_format($bon->quantite_annuler, 2, ',', ' ') }} Litres @endif
@endif @if($bon->pu > 0)
Prix unitaire: {{ number_format($bon->pu, 0, ',', ' ') }} Fbu/L
Montant à payer: {{ number_format($bon->montant_a_payer, 0, ',', ' ') }} Fbu @if($bon->montant_payer > 0) | Montant payé: {{ number_format($bon->montant_payer, 0, ',', ' ') }} Fbu @endif
@endif @if($bon->id_mode_paiement > 0)
Mode de paiement: @php $mode_paiement = DB::table('mode_paiements')->where('id_mode_paiement', $bon->id_mode_paiement)->first(); @endphp {{ $mode_paiement ? $mode_paiement->nom_mode : 'N/A' }}
@endif @if($bon->description)
Description : {{ $bon->description }}
@endif