{{ __('Dashboard') }} aqui

Total de Produtos

{{ $totalProducts }}

Estoque Baixo

{{ $lowStockProducts }}

Vendas Hoje

{{ $todaySalesCount }}

R$ {{ number_format($todaySales, 2, ',', '.') }}

Vendas do Mês

{{ $monthlySalesCount }}

R$ {{ number_format($monthlySales, 2, ',', '.') }}

@if($salesGrowth != 0)

{{ $salesGrowth > 0 ? '+' : '' }}{{ number_format($salesGrowth, 1) }}% vs mês anterior

@endif

Vendas por Vendedor (30 dias)

@if($salesBySeller->count() > 0)
@foreach($salesBySeller as $seller)

{{ $seller->name }}

{{ $seller->total_sales }} vendas

R$ {{ number_format($seller->total_amount, 2, ',', '.') }}

@endforeach
@else

Nenhuma venda encontrada nos últimos 30 dias

@endif

Vendas por Forma de Pagamento (30 dias)

@if($salesByPaymentMethod->count() > 0)
@foreach($salesByPaymentMethod as $payment)
@if($payment->payment_method === 'dinheiro') @elseif($payment->payment_method === 'cartao') @else @endif

{{ $payment->payment_method }}

{{ $payment->count }} vendas

R$ {{ number_format($payment->total, 2, ',', '.') }}

@endforeach
@else

Nenhuma venda encontrada nos últimos 30 dias

@endif

Produtos Mais Vendidos (30 dias)

@if($topProducts->count() > 0)
@foreach($topProducts as $index => $product)
{{ $index + 1 }}

{{ $product->name }}

{{ $product->total_quantity }} unidades

R$ {{ number_format($product->total_amount, 2, ',', '.') }}

@endforeach
@else

Nenhuma venda encontrada nos últimos 30 dias

@endif

Sessões de Caixa Ativas

@if($activeCashSessions->count() > 0)
@foreach($activeCashSessions as $session)

{{ $session->user->name }}

Aberta em {{ $session->opened_at->format('d/m/Y H:i') }}

R$ {{ number_format($session->opened_amount, 2, ',', '.') }}

@endforeach
@else

Nenhuma sessão de caixa ativa

@endif