Panier

{{-- Messages flash --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(!$cart || $cart->items->isEmpty())

Votre panier est vide.

@else {{-- 🔽 Formulaire d'informations générales sur le panier --}}
@csrf

{{-- đź”˝ Formulaire pour supprimer plusieurs lignes --}}
@csrf @method('DELETE') @php $total = 0; @endphp @foreach($cart->items as $item) @php $lineTotal = (!is_null($item->unit_price) && !is_null($item->quantity)) ? $item->unit_price * $item->quantity : null; if ($lineTotal !== null) { $total += $lineTotal; } @endphp {{-- âś… checkbox pour multi-suppression --}} @endforeach
Sel. Article Désignation Choix Lot Longueur nette Qté (rouleau) PU Total ligne
{{ $item->article }} {{ $item->designation_article }} {{ $item->choix }} {{ $item->lot }} {{ $item->longueur_net }} {{ $item->quantity }} @if(!is_null($item->unit_price)) {{ number_format($item->unit_price, 2, ',', ' ') }} @else - @endif @if($lineTotal !== null) {{ number_format($lineTotal, 2, ',', ' ') }} @else - @endif

Total panier : {{ number_format($total, 2, ',', ' ') }}

{{-- 🔽 Résumé par code article --}} @if(isset($articleSummary) && $articleSummary->isNotEmpty())

Résumé par article

@foreach($articleSummary as $row) @endforeach
Article Désignation Nb rouleaux Quantité totale
{{ $row['article'] }} {{ $row['designation'] }} {{ $row['rolls_count'] }} {{ number_format($row['total_qty'], 2, ',', ' ') }}
@endif @endif
Export Excel (par lots) Export Excel (par article)