@extends('default.layout', ['title' => 'Caixa']) @section('content')
{!! Form::open() ->post() ->route('frenteCaixa.fecharPost') !!}
Total de Vendas: {{ sizeof($vendas) }}

@if ($abertura != null)
Inicio do Caixa: {{ $abertura->created_at }}

Totais por Tipo de Pagamento:
@foreach ($somaTiposPagamento as $key => $tp) @if ($tp > 0)

{{ App\Models\VendaCaixa::getTipoPagamento($key) }}

R$ {{ __moeda($tp) }}

@endif @endforeach
@php $soma = 0; @endphp @forelse ($vendas as $item) @php if(!$item->consignado && !$item->rascunho) $soma += $item->valor_total; @endphp @empty @endforelse
Cliente Data Tipo de Pagamento Estado NFCe / NFe Tipo de Venda Valor
{{ $item->cliente->razao_social ?? 'Consumidor Final' }} {{ __data_pt($item->created_at, 0) }} @if ($item->tipo_pagamento == '99') Ver @else {{ $item->getTipoPagamento($item->tipo_pagamento) }} @endif {{ $item->estado_emissao }} {{ $item->estado }} {{ $item->NFcNumero }} {{ $item->numero_nfe }} {{ $item->tipo }} {{ __moeda($item->valor_total) }}

@if(sizeof($vendas) == 0)

Não é possível fechar Caixa sem nenhuma venda!

@else
Soma Total: R$ {{ __moeda($soma) }}
@endif
{!! Form::close() !!} @else
Caixa Fechado !
@endif
@endsection