Relatório de Vendas

Faturamento Total

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

Custo Total (Produtos)

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

Lucro Líquido

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

@if($totalRevenue > 0)

Margem: {{ number_format(($netProfit / $totalRevenue) * 100, 1) }}%

@endif

Detalhamento de Vendas

@forelse($reportData as $row) @empty @endforelse
Data Venda # Produto Custo Venda Lucro
{{ $row['date']->format('d/m/Y') }} #{{ $row['sale_id'] }} {{ $row['product'] }} R$ {{ number_format($row['cost'], 2, ',', '.') }} R$ {{ number_format($row['price'], 2, ',', '.') }} R$ {{ number_format($row['profit'], 2, ',', '.') }}
Nenhuma venda encontrada no período selecionado.