@extends('layouts.admin') @section('title', __('pages.list_pages.xml_title')) @section('content')
@if(session('status'))
{{ session('status') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ __('pages.list_pages.xml_title') }}

{{ __('pages.common.clear_filter') }}
@foreach($fiscalYears as $year) @php $latestDocument = $documentsByYear->get($year->id); $readyForXml = $year->financialStatement && $year->annexes_count === 6 && $year->fiscalDeclaration && $year->validation_checks_count > 0 && $year->validation_errors_count === 0; @endphp @endforeach
{{ __('pages.common.company') }} {{ __('pages.common.year') }} {{ __('pages.list_pages.prerequisites') }} {{ __('pages.list_pages.last_xml_status') }} {{ __('pages.common.actions') }}
{{ $year->company->name }} {{ $year->year }}
{{ __('pages.list_pages.financial_statements') }} {{ $year->financialStatement ? __('pages.list_pages.ok') : __('pages.list_pages.missing') }}
{{ __('pages.kpi_global.annexes') }} {{ $year->annexes_count }}/6
IS/CSS {{ $year->fiscalDeclaration ? __('pages.list_pages.ok') : __('pages.list_pages.missing') }}
{{ __('pages.kpi_global.validation') }} {{ $year->validation_checks_count > 0 ? __('pages.list_pages.launched') : __('pages.list_pages.absent') }}
{{ __('pages.kpi_global.errors') }} {{ $year->validation_errors_count }} @if($year->validation_errors_count > 0) @endif
@if($latestDocument) {{ strtoupper($latestDocument->validation_status) }} @else {{ __('pages.list_pages.no_xml') }} @endif @if($readyForXml)
@csrf
@else @endif
@endsection