@extends('layouts.layoutMaster') @section('title', 'Relatório de Vendas PDV') @section('page-style') @endsection @section('content')
| # | Produto | Qtd | Total |
|---|---|---|---|
| @if($index < 3) {{ $index + 1 }}º @else {{ $index + 1 }}º @endif | {{ $produto->nome_produto }} | {{ intval($produto->total_quantidade) }} | R$ {{ number_format($produto->total_valor, 2, ',', '.') }} |
| Nenhum produto vendido | |||
| Forma de Pagamento | Vendas | Total | % |
|---|---|---|---|
| {{ $item->forma_pagamento }} | {{ $item->total_vendas }} | R$ {{ number_format($item->total_valor, 2, ',', '.') }} | {{ $stats['valor_total'] > 0 ? number_format(($item->total_valor / $stats['valor_total']) * 100, 1) : 0 }}% |
| Nenhuma venda registrada | |||
| Total | {{ $stats['total_vendas'] }} | R$ {{ number_format($stats['valor_total'], 2, ',', '.') }} | 100% |
| Operador | Total Vendas | Valor Total | Ticket Médio | % do Total |
|---|---|---|---|---|
| {{ $operador->nome_operador ?? 'Não identificado' }} | {{ $operador->total_vendas }} | R$ {{ number_format($operador->total_valor, 2, ',', '.') }} | R$ {{ number_format($operador->total_vendas > 0 ? $operador->total_valor / $operador->total_vendas : 0, 2, ',', '.') }} |
|
| Nenhuma venda registrada | ||||