@extends('default.layout') @section('content')

ENVIAR XML PARA O ESCRITÓRIO Filtrar por cfop

@if(isset($estado) && $estado == 0)

>>Filtrando os documentos cancelados

@endif
@if(isset($xml)&& sizeof($xml) > 0)

Total de arquivos de NFe: {{sizeof($xml)}}

@foreach($xml as $x) @endforeach
Venda ID Cliente Valor Chave Data
{{$x->id}} {{$x->cliente->razao_social}} {{number_format($x->valor_total, 2)}} {{$x->chave}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlEntrada) && sizeof($xmlEntrada) > 0)

Total de arquivos de NFe Entrada: {{sizeof($xmlEntrada)}}

@foreach($xmlEntrada as $x) @endforeach
Compra ID Cliente Valor Chave Data
{{$x->id}} {{$x->fornecedor->razao_social}} {{number_format($x->valor, 2)}} {{$x->chave}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlDevolucao) && sizeof($xmlDevolucao) > 0)

Total de arquivos de NFe Devolução: {{sizeof($xmlDevolucao)}}

@foreach($xmlDevolucao as $x) @endforeach
Venda ID Cliente Valor Chave Data
{{$x->id}} {{$x->fornecedor->razao_social}} {{number_format($x->valor_devolvido, 2)}} {{$x->chave_gerada}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlNfce) && sizeof($xmlNfce) > 0)

Total de arquivos de NFCe: {{sizeof($xmlNfce)}}

@foreach($xmlNfce as $x) @endforeach
Venda ID Cliente Valor Chave Data
{{$x->id}} @if($x->cliente) {{$x->cliente->razao_social}} @else -- @endif {{number_format($x->valor_total, 2)}} {{$x->chave}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlCte) && sizeof($xmlCte) > 0)

Total de arquivos de CTe: {{sizeof($xmlCte)}}

@foreach($xmlCte as $x) @endforeach
ID Chave Data
{{$x->id}} {{$x->chave}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlMdfe) && sizeof($xmlMdfe) > 0)

Total de arquivos de MDFe: {{sizeof($xmlMdfe)}}

@foreach($xmlMdfe as $x) @endforeach
ID Chave Data
{{$x->id}} {{$x->chave}} {{ \Carbon\Carbon::parse($x->created_at)->format('d/m/Y H:i:s')}}
@endif @if(isset($xmlCompraFiscal) && sizeof($xmlCompraFiscal) > 0)

Total de arquivos de Compra fiscal: {{sizeof($xmlCompraFiscal)}}

@foreach($xmlCompraFiscal as $x) @endforeach
ID Chave Data
{{$x['id']}} {{$x['chave']}} {{ \Carbon\Carbon::parse($x['data_emissao'])->format('d/m/Y H:i')}}
@endif @if(isset($xml) && isset($xmlNfce) && isset($xmlCte) && isset($xmlMdfe) && sizeof($xml) == 0 && sizeof($xmlNfce) == 0 && sizeof($xmlCte) == 0 && sizeof($xmlMdfe) == 0 && sizeof($xmlCompraFiscal) == 0 && sizeof($xmlEntrada) == 0)

Nenhum arquivo encontrado

@endif
@endsection