@foreach($vendas as $v)
{{$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 : '--' }}
|
{{ $v->usuario->nome }}
|
{{ number_format($v->valor_total, 2, ',', '.') }}
|
@if($v->NFcNumero && $v->estado == 'APROVADO')
@endif
@if(!$v->NFcNumero)
@endif
|
@endforeach