{{-- ====================================================== --}} {{-- CABEÇALHO --}} {{-- ====================================================== --}}

Relatório de Comandas

Mesas e pedidos internos Da Casa

{{-- ====================================================== --}} {{-- FILTROS --}} {{-- ====================================================== --}}
{{-- DATA INÍCIO --}}
{{-- DATA FIM --}}
{{-- ORIGEM --}}
{{-- PAGAMENTO --}}
{{-- AÇÕES --}}
✖ Limpar
{{-- ====================================================== --}} {{-- TOTALIZADORES --}} {{-- ====================================================== --}}
{{-- COMANDAS --}}
Comandas
{{ $totais->total_comandas ?? 0 }}
{{ $totais->total_mesas ?? 0 }} mesas {{ $totais->total_da_casa ?? 0 }} Da Casa
{{-- SUBTOTAL --}}
Subtotal
R$ {{ number_format( $totais->soma_subtotal ?? 0, 2, ',', '.' ) }}
{{-- TAXA --}}
Taxas de serviço
+ R$ {{ number_format( $totais->soma_taxa ?? 0, 2, ',', '.' ) }}
Da Casa não possui 10%
{{-- DESCONTOS --}}
Descontos
- R$ {{ number_format( $totais->soma_desconto ?? 0, 2, ',', '.' ) }}
{{-- TOTAL RECEBIDO --}}
Total recebido
R$ {{ number_format( $totais->soma_recebido ?? 0, 2, ',', '.' ) }}
{{-- ====================================================== --}} {{-- TABELA --}} {{-- ====================================================== --}}
@forelse( $comandas as $comanda ) @php $ehDaCasa = $comanda->tipo === 'da_casa'; $coresPagamento = [ 'dinheiro' => 'bg-green-900 text-green-300', 'pix' => 'bg-blue-900 text-blue-300', 'credito' => 'bg-purple-900 text-purple-300', 'debito' => 'bg-yellow-900 text-yellow-300', 'multiplo' => 'bg-cyan-900 text-cyan-300', ]; $nomesPagamento = [ 'dinheiro' => 'Dinheiro', 'pix' => 'PIX', 'credito' => 'Crédito', 'debito' => 'Débito', 'multiplo' => 'Múltiplos', ]; $corPagamento = $coresPagamento[ $comanda ->forma_pagamento ] ?? 'bg-gray-700 text-gray-300'; $nomePagamento = $nomesPagamento[ $comanda ->forma_pagamento ] ?? '—'; $rotaImpressao = $ehDaCasa ? route( 'da-casa.imprimir', $comanda ) : route( 'comanda.imprimir', $comanda ); @endphp {{-- ================================================== --}} {{-- LINHA PRINCIPAL --}} {{-- ================================================== --}} {{-- ID --}} {{-- ================================================== --}} {{-- MESA / FUNCIONÁRIO + TIPO --}} {{-- ================================================== --}} {{-- FECHAMENTO --}} {{-- ITENS --}} {{-- PAGAMENTO --}} {{-- SUBTOTAL --}} {{-- TAXA --}} {{-- DESCONTO --}} {{-- TOTAL --}} {{-- AÇÕES --}} {{-- ================================================== --}} {{-- ITENS EXPANDIDOS --}} {{-- ================================================== --}} @empty @endforelse
# Mesa / Funcionário Fechamento Itens Pagamento(s) Subtotal Taxa Desconto Total Ações
#{{ $comanda->id }}
@if($ehDaCasa) Da Casa
{{ $comanda ->nome_funcionario ?: $comanda ->nome_mesa }}
Consumo interno
@else Mesa
{{ $comanda->nome_mesa }}
@endif
@if($comanda->data_fechamento) {{ \Carbon\Carbon::parse( $comanda ->data_fechamento )->format( 'd/m/Y H:i' ) }} @else — @endif {{ $comanda->itens->count() }} {{ $comanda ->itens ->count() === 1 ? 'item' : 'itens' }} {{ $nomePagamento }} R$ {{ number_format( $comanda ->valor_total ?? 0, 2, ',', '.' ) }} @if( ( $comanda ->taxa_servico ?? 0 ) > 0 ) + R$ {{ number_format( $comanda ->taxa_servico, 2, ',', '.' ) }} @else — @endif @if( ( $comanda ->desconto ?? 0 ) > 0 )
- R$ {{ number_format( $comanda ->desconto, 2, ',', '.' ) }}
@if( $comanda ->motivo_desconto )
{{ $comanda ->motivo_desconto }}
@endif @else — @endif
R$ {{ number_format( $comanda ->valor_final ?? 0, 2, ',', '.' ) }} ▼
🖨️ Reimprimir
Nenhuma comanda encontrada para os filtros selecionados.
{{-- ================================================== --}} {{-- PAGINAÇÃO --}} {{-- ================================================== --}} @if( $comandas->hasPages() )
{{ $comandas->links() }}
@endif
{{-- ====================================================== --}} {{-- JAVASCRIPT --}} {{-- ====================================================== --}}