@extends('layouts.base') @section('title', 'Détails Commande') @section('content')

{{$customer->name}}

CLIENT SIBM

Situation financière
{{number_format($customer->financial->money,0,'',' ')}} FCFA

Commande total
{{$customer->commands->count()}}
Commandes en cours
{{$customer->commands->where('status','PROGRESS')->count()}}
Commandes terminées
{{$customer->commands->where('status','FINISH')->count()}}
Retour à la liste
@foreach($customer->commands->where('status','=','PROGRESS') as $command)
user
N°BC : {{$command->code}} | Commandé le {{$command->order_at->format('d-m-Y')}}
@foreach($command->commandProducts as $key => $product) @endforeach
# Produit Quantité
{{++$key}} {{$product->product->name}} {{$product->quantity}}

@endforeach
@endsection