Filtro por CFOP
{!!Form::open()
->get()
->route('enviarXml.filtroCfopGet')
!!}
{!!Form::close()!!}
@isset($itens)
@endisset
{!!Form::date('start_date', 'Data Inicial')
!!}
{!!Form::date('end_date', 'Data Final')
!!}
{!!Form::tel('cfop', 'CFOP')->attrs(['class' => 'cfop'])
!!}
{!!Form::close()!!}
Valor total de Emissão: {{ number_format($somaTotalVendas, 2, ',', '.')}}
@isset($itens)
@foreach($itens as $t)
@endforeach
{!!Form::open()
->get()
->route('enviarXml.imprimirGroup')
!!}
{!!Form::close()!!}
CFOP: {{$t['cfop']}}
| Produto | Unidade | Quantidade | R$ Total |
|---|---|---|---|
| {{$i->produto->nome}} | {{$i->produto->unidade_venda}} | {{number_format($i->qtd, 2, ',', '.')}} | {{ number_format($i->total, 2, ',', '.') }} | @php $somaValor += $i->total; $somaQuantidade += $i->quantidade; @endphp
Valor total de emissão: {{ number_format($somaValor, 2, ',', '.') }}
@php $percentual = $somaTotalVendas > 0 ? (100 - ((($somaValor-$somaTotalVendas)/$somaTotalVendas*100)*-1)) : 0; @endphpPercentual: {{ number_format($percentual, 2, ',', '.') }}%
{!!Form::open()
->get()
->route('enviarXml.imprimir')
!!}
{!!Form::close()!!}
@endforeach