@extends('admin.layout') @section('title', 'Historique des commandes client') @section('content')

Historique des commandes — {{ $client['RAISON_SOCIALE'] ?: $client['NOMFAMILLE'] . ' ' . $client['PRENOM'] }}

{{-- ========================= --}} {{-- INFOS CLIENT --}} {{-- ========================= --}}
ID CLIENT {{ $client['IDCONTACT'] }}
Nom {{ $client['RAISON_SOCIALE'] ?: $client['NOMFAMILLE'] . ' ' . $client['PRENOM'] }}
{{-- ========================= --}} {{-- HISTORIQUE COMMANDES --}} {{-- ========================= --}}

Historique des commandes ({{ $commandes->total() }})


@if ($commandes->count() > 0)
@foreach ($commandes as $c) @php $itemId = 'commande_' . $c['id_process']; $isOpen = $loop->first; @endphp

Type {{ $c['type'] ?? '—' }}
Modèle {{ $c['modele'] ?? '—' }}
Couleur {{ $c['couleur'] ?? '—' }}
Finition {{ $c['finition'] ?? '—' }}
Date fabrication {{ $c['date_fabrication'] ?? '—' }}
Date réception entrepôt {{ $c['date_reception_entrepot'] ?? '—' }}
État {{ $c['etat'] ?? '—' }}
@if (!empty($c['lien_pdf'])) @endif
@endforeach
{{-- Pagination --}}
{{ $commandes->links() }}
@else

Aucune commande trouvée pour ce client.

@endif
@endsection