@extends('admin.layout') @section('title', "Facture #{$facture['IDFACTURE']}") @section('content')

Facture #{{ $facture['IDFACTURE'] }}

@include('admin.gestan._stale_banner')
{{-- ========================= --}} {{-- Informations générales --}} {{-- ========================= --}}

Informations générales

@if (!empty($facture['VREF'])) @endif
ID Client {{ $facture['IDCONTACT'] }}
Raison sociale {{ $facture['RAISON_SOCIALE'] }}
Nom du client {{ $facture['NOM_CLIENT'] }}
Adresse {{ $facture['ADRESSE1'] }}
@if ($facture['ADRESSE2']) {{ $facture['ADRESSE2'] }}
@endif {{ $facture['CPOSTAL'] }} {{ $facture['VILLE'] }}
Nature {{ $facture['NATURE'] }}
Référence {{ $facture['VREF'] }}
Statut @include('admin.gestan.partials.badge-status', [ 'statut' => $facture['STATUT_FAD'] ?? null, ])
Responsable {{ $facture['US_RESP'] }}
Date création {{ $facture['DHCRE'] }}
{{-- ========================= --}} {{-- Lignes facture --}} {{-- ========================= --}}

Lignes de la facture

@if (!empty($facture['lignes']))
@foreach ($facture['lignes'] as $ligne) @endforeach
Désignation PU HT PU TTC Qté TVA Total HT Total TTC
{{ $ligne['CD_PRODUIT'] }}
{!! nl2br(e($ligne['LIB_LFACT'])) !!}
{{ $ligne['PU_HT'] ?? '—' }} € {{ $ligne['PU_TTC'] ?? '—' }} € {{ $ligne['QUANTITE'] }} {{ $ligne['TX_TVA_VENTE'] ?? '—' }} % {{ $ligne['MTT_HT'] ?? '—' }} € {{ $ligne['MTT_TTC'] ?? '—' }} €
@else
Aucune ligne trouvée pour cette facture.
@endif {{-- ========================= --}} {{-- Bouton retour --}} {{-- ========================= --}}
@endsection