@extends('layouts.cliente.app') @section('content')
{{-- ================= HEADER ================= --}}

Olá, {{ auth()->user()->name }}

Aqui está o resumo da sua atividade
{{ now()->format('d/m/Y H:i') }}
{{-- ================= KPI CARDS ================= --}}
{{-- COMPRAS --}}
Total de Compras

{{ $totalOrders ?? 0 }}

{{-- GASTO --}}
Total Gasto

{{ number_format($totalSpent ?? 0, 2, ',', '.') }} Kz

{{-- CARRINHO --}}
Itens no Carrinho

{{ $cartItems ?? 0 }}

{{-- ================= GRID ================= --}}
{{-- CHART --}}
Compras por mês
Últimos 12 meses
{{-- AÇÕES --}}
{{-- ================= TABELA ================= --}}
Últimas Compras
Ver todas
@forelse($recentOrders ?? [] as $order) @php $badge = match($order->status) { 'aprovado' => 'success', 'reprovado' => 'danger', default => 'warning' }; @endphp @empty @endforelse
Pedido Data Total Status
{{ $order->numero }} {{ $order->created_at->format('d/m/Y') }} {{ number_format($order->total,2,',','.') }} Kz {{ ucfirst($order->status ?? 'pendente') }}
Nenhuma compra encontrada
@endsection @push('scripts') @endpush