Total de vendas: {{sizeof($vendas)}}
Valor de abertura: {{number_format($abertura->valor, 2, ',', '.')}}
Data de abertura: {{ \Carbon\Carbon::parse($abertura->created_at)->format('d/m/Y H:i') }}
Data de fechamento: {{ \Carbon\Carbon::parse($abertura->updated_at)->format('d/m/Y H:i') }}
Total por tipo de pagamento:
@foreach($somaTiposPagamento as $key => $tp)
@if($tp > 0)
@php if($key == '01') $valorEmDinheiro = $tp; @endphp
@endif
@endforeach
{{App\Models\VendaCaixa::getTipoPagamento($key)}}
R$ {{number_format($tp, 2, ',', '.')}}
| Cliente | Data | Tipo de pagamento | Estado | NFCe/NFe | Tipo | Desconto | 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 }} | {{ number_format($v->desconto, 2, ',', '.') }} | {{ number_format($v->valor_total, 2, ',', '.') }} |