@extends('admin.layouts.netgescon') @section('title', 'Diagnostica FE / PDF') @section('breadcrumb') SuperAdmin / Diagnostica FE / PDF @endsection @section('content')

Diagnostica Fatture Elettroniche (PDF/XML)

Controlli rapidi per individuare record con PDF mancanti, file non presenti su storage, o path duplicati.

Totale FE
{{ number_format((int) $totalFe, 0, ',', '.') }}
PDF path mancanti
{{ number_format((int) $missingPdfPathCount, 0, ',', '.') }}
PDF path duplicati
{{ number_format((int) $duplicatePdfPathsCount, 0, ',', '.') }}

Problemi rilevati (campione)

Verifica esistenza file PDF su storage: controllati {{ number_format((int) $pdfExistenceChecked, 0, ',', '.') }} record recenti con PDF path valorizzato. Trovati {{ number_format((int) $missingPdfOnDiskCount, 0, ',', '.') }} casi con file mancante.
XML mancanti (né path né contenuto): {{ number_format((int) $missingXmlPathCount, 0, ',', '.') }}.
@forelse($rows as $r) @empty @endforelse
ID Stabile Fornitore Data / Numero Totale Problemi PDF Azioni
#{{ $r['id'] }} {{ $r['stabile_id'] ?: '-' }}
{{ $r['fornitore'] !== '' ? $r['fornitore'] : '-' }}
@if($r['sdi_file'] !== '')
SDI: {{ $r['sdi_file'] }}
@endif
{{ $r['data'] ?: '-' }}
{{ $r['numero'] !== '' ? $r['numero'] : '-' }}
{{ number_format((float) $r['totale'], 2, ',', '.') }} €
@foreach($r['issues'] as $i) @php($cls = match($i['type']) { 'danger' => 'netgescon-badge netgescon-badge-danger', 'warning' => 'netgescon-badge', default => 'netgescon-badge' }) {{ $i['label'] }} @endforeach @if(count($r['issues']) === 0) OK @endif
@if($r['pdf_path'] !== '')
{{ $r['pdf_path'] }}
@endif
@if($r['pdf_path'] === '') @else @if($r['pdf_exists']) Presente @else Assente @endif @endif
Nessun problema trovato nel campione (o nessuna FE presente).
@endsection