| {{\Carbon\Carbon::parse($v->created_at)->format('d/m/Y H:i')}} |
{{$v->id}} |
{{$v->vendedor()}} |
{{$v->cliente ? $v->cliente->razao_social : 'Consumidor final'}} |
@if(isset($v->cpf))
{{$v->getTipoPagamento2()}} |
@else
{{$v->getTipoPagamento()}} |
@endif
@if($v->tbl == 'pdv')
R$ 0,00 |
R$ {{number_format($v->desconto, 2, ',', '.')}} |
R$ {{number_format($v->valor_total, 2, ',', '.')}} |
R$ {{number_format($v->valor_total+$v->desconto, 2, ',', '.')}} |
@else
R$ {{ $v->valorDespesaOperacionais() }} |
R$ {{number_format($v->desconto, 2, ',', '.')}} |
R$ {{ number_format($v->valorLiquido(), 2, ',', '.') }} |
R$ {{number_format($v->valor_total, 2, ',', '.')}} |
@endif
@php
if(!isset($v->cpf)){
$somaPedido += $v->valor_total;
$somaPedidoLiquido += $v->valorLiquido();
}else{
$somaPdv += $v->valor_total;
}
$somaDesconto += $v->desconto
@endphp
@endforeach