Estado: @if($estado) Caixa aberto {{\Carbon\Carbon::parse($abertura->created_at)->format('d/m/Y H:i')}} @else Caixa fechado @endif
@if($estado) @if(sizeof($caixa) > 0)
Total de vendas: {{sizeof($caixa['vendas'])}}
@endif @if($abertura != null)Valor de abertura: {{number_format($abertura->valor, 2, ',', '.')}}
@endif @endif @php $somaDinheiro = 0; @endphp @if(sizeof($caixa) > 0)Total por tipo de pagamento:
@foreach($caixa['somaTiposPagamento'] as $key => $tp)
@if($tp > 0)
@php
if($key == '01') $somaDinheiro = $tp;
@endphp
@endif
@endforeach
{{App\Models\VendaCaixa::getTipoPagamento($key)}}
R$ {{number_format($tp, 2, ',', '.')}}
| Cliente | Data | Tipo de pagamento | Estado | NFCe/NFe | Tipo | Valor | ||
|---|---|---|---|---|---|---|---|---|
| {{ $v->cliente->razao_social ?? 'NAO IDENTIFCADO' }} | {{ \Carbon\Carbon::parse($v->created_at)->format('d/m/Y H:i:s')}} | @if($v->tipo_pagamento == '99') Outros @else {{$v->getTipoPagamento($v->tipo_pagamento)}} @endif | {{ $v->estado }} | @if($v->tipo == 'PDV'){{ $v->NFcNumero > 0 ? $v->NFcNumero : '--' }} | @else{{ $v->NfNumero > 0 ? $v->NfNumero : '--' }} | @endif{{ $v->tipo }} | @if(!isset($v->cpf)){{ number_format($v->valor_total-$v->desconto+$v->acrescimo, 2, ',', '.') }} | @else{{ number_format($v->valor_total, 2, ',', '.') }} | @endif
@php $somaSuprimento = 0; $somaSangria = 0; @endphp @if(sizeof($caixa) > 0)