@if(!$record->smart_check_status)

Nessuna verifica eseguita

@else {{-- Header con stato --}}
@if($record->smart_check_status === 'passed')
Tutti i calcoli corretti
{{ $record->smart_check_at?->format('d/m/Y H:i') }}
@elseif($record->smart_check_status === 'failed')
Problemi rilevati
{{ $record->smart_check_at?->format('d/m/Y H:i') }}
@else
In elaborazione
@endif
{{-- Commento AI --}} @if($record->smart_check_result && isset($record->smart_check_result['comment']))
"{{ $record->smart_check_result['comment'] }}"
@endif {{-- Checks Table --}} @if($record->smart_check_result && !empty($record->smart_check_result['checks']))
@foreach($record->smart_check_result['checks'] as $check) @endforeach
Voce Atteso Trovato
{{ $check['label'] }} €{{ number_format($check['expected'], 2, ',', '.') }} €{{ number_format($check['actual'], 2, ',', '.') }} @if($check['ok']) @else @endif
@endif {{-- Errori --}} @if($record->smart_check_result && !empty($record->smart_check_result['errors']))
Errori rilevati:
@endif {{-- Errore tecnico --}} @if($record->smart_check_result && isset($record->smart_check_result['error']))
{{ $record->smart_check_result['error'] }}
@endif @endif