@extends('default.layout') @section('content')

Total de vendas: {{sizeof($vendas)}}

Inicio do caixa: {{ \Carbon\Carbon::parse($abertura->created_at)->format('d/m/Y H:i:s')}}

Total por tipo de pagamento:

@foreach($somaTiposPagamento as $key => $tp) @if($tp > 0)

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

R$ {{number_format($tp, 2, ',', '.')}}

@endif @endforeach
@foreach($vendas as $v) @endforeach
# Cliente Data Tipo de pagamento Estado NFCe Valor
{{$v->id}} {{ $v->cliente->razao_social ?? 'NAO IDENTIFCADO' }} {{ \Carbon\Carbon::parse($v->created_at)->format('d/m/Y H:i:s')}} @if($v->tipo_pagamento == '99') Ver @else {{$v->getTipoPagamento($v->tipo_pagamento)}} @endif {{ $v->estado }} {{ $v->NFcNumero > 0 ? $v->NFcNumero : '--' }} {{ number_format($v->valor_total, 2, ',', '.') }}

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

NÃO É POSSÍVEL FECAR SEM NENHUMA VENDA

@endif
@csrf
@endsection