@php $cards = [ [ 'label' => 'Valor vendido', 'value' => 'R$ '.number_format((float) ($metrics['sales_paid'] ?? 0), 2, ',', '.'), 'description' => 'vendas pagas no mês', 'icon' => '📈', 'tone' => 'from-slate-950 to-slate-800 text-white', ], [ 'label' => 'A receber', 'value' => 'R$ '.number_format((float) ($metrics['commission_approved'] ?? 0), 2, ',', '.'), 'description' => 'comissão aprovada/liberada', 'icon' => '💰', 'tone' => 'from-emerald-600 to-teal-600 text-white', ], [ 'label' => 'Prevista', 'value' => 'R$ '.number_format((float) ($metrics['commission_forecasted'] ?? 0), 2, ',', '.'), 'description' => 'aguardando validação', 'icon' => '⏳', 'tone' => 'from-amber-500 to-orange-500 text-white', ], [ 'label' => 'Paga', 'value' => 'R$ '.number_format((float) ($metrics['commission_paid'] ?? 0), 2, ',', '.'), 'description' => 'histórico quitado', 'icon' => '✅', 'tone' => 'from-white to-slate-50 text-slate-950', ], [ 'label' => 'Usos do cupom', 'value' => number_format((float) ($metrics['coupon_uses'] ?? 0), 0, ',', '.'), 'description' => 'movimentações totais', 'icon' => '🏷️', 'tone' => 'from-white to-slate-50 text-slate-950', ], [ 'label' => 'Vendas confirmadas', 'value' => number_format((float) ($metrics['orders_paid'] ?? 0), 0, ',', '.'), 'description' => 'pedidos pagos', 'icon' => '🛍️', 'tone' => 'from-white to-slate-50 text-slate-950', ], [ 'label' => 'Pendentes', 'value' => number_format((float) ($metrics['orders_pending'] ?? 0), 0, ',', '.'), 'description' => 'sem comissão ainda', 'icon' => '🕒', 'tone' => 'from-white to-slate-50 text-slate-950', ], [ 'label' => 'Canceladas', 'value' => number_format((float) ($metrics['orders_cancelled'] ?? 0), 0, ',', '.'), 'description' => 'canceladas/reembolsadas', 'icon' => '↩️', 'tone' => 'from-white to-slate-50 text-slate-950', ], ]; @endphp