Informations Client

Nom complet : {{ $client->fullname }}

Contact : {{ $client->contact }}

Contact sécondaire : {{ $client->tel }}

Adresse : {{ $client->address ?? 'N/A' }}

Email : {{ $client->email ?? 'N/A' }}

Parent : {{ $client->referant ?? 'N/A' }}

Situation des commandes
{{-- EN COURS --}}

{{ $commandes->count() }}

Total
{{-- LIVRÉES --}}

{{ $commandesLivrees->count() }}

Livrées
{{-- NON LIVRÉES --}}

{{ $commandesEnCours->count() }}

Non livrées
{{-- ANNULÉES --}}

{{ $commandesAnnulees->count() }}

Annulées
Résumé Atelier

Total

{{ money($totalCommandes) }}

Reduction

{{ money($discountTotal) }}

Montant Payé

{{ money($totalPaid) }}

Reliquat

{{ money($reliquatTotal) }}
@if ($commandes->count() > 0) @foreach($commandes as $commande)
{{ $commande->reference }}
{{ ucfirst($commande->status) }} {{-- ICON EDIT --}}
Date de dépôt {{ \Carbon\Carbon::parse($commande->start_date)->format('d/m/Y') }}
Date de récupération {{ \Carbon\Carbon::parse($commande->end_date)->format('d/m/Y') }}
@foreach($commande->items as $item) @endforeach
Désignation Qté Prix Montant
{{ $item->designation }} {{ $item->quantity }} {{ money($item->price) }} {{ money($item->amount) }}
@php $total = $commande->amount->amount_items ?? 0; $paid = $commande->amount->amount_payments ?? 0; $discount = $commande->amount->discount ?? 0; $remainder = $commande->amount->remainder ?? 0; $percentage = $total > 0 ? ($paid / $total) * 100 : 0; @endphp
Progression du paiement {{ number_format($percentage, 0) }}%
Total {{ money($total) }}
Payé {{ money($paid) }}
Remise
{{ money($discount) }}
Reste {{ money($remainder) }}
@if($commande->note)
Note : {{ $commande->note }}
@endif
@endforeach @else
Aucune commande disponible pour le moment.
@endif
{{ $commandes->links() }}
@if($showDiscountModal) @endif @if($isStatusModalOpen) @endif