@props([ 'order' => null, ]) @if($order) @php $stats = [ [ 'icon' => 'download-cloud', 'label' => __('Reçus'), 'value' => $order->received_quantity, 'color' => 'primary', ], [ 'icon' => 'check-circle', 'label' => __('Facturables'), 'value' => $order->billable_quantity, 'color' => 'success', ], [ 'icon' => 'cross-circle', 'label' => __('Rejetés'), 'value' => $order->rejected_quantity, 'color' => 'danger', ], [ 'icon' => 'coins', 'label' => __('Dépensé'), 'value' => number_format($order->spent_amount ?? 0, 2) . ' €', 'color' => 'warning', ], ]; @endphp
merge(['class' => 'order-quick-stats']) }}>
@foreach($stats as $stat)

{{ $stat['value'] }}

{{ $stat['label'] }}
@endforeach
{{-- Progress Bars --}} @if($order->ordered_quantity || $order->planned_investment)
@if($order->ordered_quantity) @endif @if($order->planned_investment) @endif
@endif
@endif