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

📊 Dashboard

Resumo financeiro e operacional
{{ now()->format('d/m/Y H:i') }}
{{-- ================= KPI FINANCEIRO ================= --}}
{{-- RECEITA TOTAL --}}
Receita Total

{{ number_format($totalRevenue,2,',','.') }} Kz

{{-- RECEITA HOJE --}}
Receita Hoje

{{ number_format($salesToday,2,',','.') }} Kz

{{-- MÉDIA --}}
Média diária (30d)

{{ number_format($avgDailyRevenue,2,',','.') }} Kz

{{-- ================= KPI SISTEMA ================= --}}

{{ $totalOrders }}

Encomendas

{{ $totalProducts }}

Produtos

{{ $totalUsers }}

Utilizadores

{{ $totalMarcas }}

Marcas
{{-- ================= ANALYTICS ================= --}}
{{-- CHART --}}
📈 Vendas últimos 7 dias
{{-- USERS --}}
👥 Utilizadores
@foreach($usersByRole as $role => $total)
{{ ucfirst($role) }} {{ $total }}
@endforeach
{{-- ================= CHART ================= --}} {{-- ================= STYLE ================= --}} @endsection