@extends('default.layout') @section('content')
@if(isset($config)) @endif

Lista de Vendas

Tabela

Grade

@foreach($vendas as $v) @endforeach
# Código Cliente Data de registro Tipo de pagamento Estado NFe Usuário Valor Integral Desconto Acréscimo Valor Total Pedido Ecommerce Ações
@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
@if($certificado != null) @else @endif
@if(isset($links)) {{$vendas->links()}} @endif
@endsection