@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