@foreach($vendas as $v)
|
@if(!$v->status)
@endif
|
{{$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')
@else
{{$v->getTipoPagamento($v->tipo_pagamento)}}
@endif
|
{{ $v->estado }}
|
{{ $v->NfNumero > 0 ? $v->NfNumero : '--' }}
|
{{ $v->usuario->nome }}
|
{{ number_format($v->valor_total, $casasDecimais, ',', '.') }}
|
{{ number_format($v->desconto, 2, ',', '.') }}
|
{{ number_format($v->acrescimo, 2, ',', '.') }}
|
{{ number_format($v->valor_total-$v->desconto+$v->acrescimo, $casasDecimais, ',', '.') }}
|
@if($v->pedido_ecommerce_id > 0)
{{$v->pedido_ecommerce_id}}
@elseif($v->pedido_nuvemshop_id > 0)
{{$v->pedido_nuvemshop_id}}
@else
--
@endif
|
@if($v->estado == 'DISPONIVEL')
@endif
@if($v->estado == 'DISPONIVEL' || $v->estado == 'REJEITADO')
@endif
@if($v->estado == 'DISPONIVEL' || $v->estado == 'REJEITADO')
@endif
|
@endforeach