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

ENVIAR XML PARA O ESCRITÓRIO

@if(isset($xml)&& count($xml) > 0)

Total de arquivos de NFe: {{count($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($xmlNfce) && count($xmlNfce) > 0)

Total de arquivos de NFCe: {{count($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) && count($xmlCte) > 0)

Total de arquivos de CTe: {{count($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) && count($xmlMdfe) > 0)

Total de arquivos de MDFe: {{count($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($xml) && isset($xmlNfce) && isset($xmlCte) && isset($xmlMdfe) && count($xml) == 0 && count($xmlNfce) == 0 && count($xmlCte) == 0 && count($xmlMdfe) == 0)

Nenhum arquivo encontrado

@endif
@endsection