@extends('layouts.app') @section('titre', 'Archives') @section('contenu')

Archives des interventions

Chaque arrêt clôturé, avec le bon tel qu'il a été signé. L'équipe n'y a plus accès le lendemain ; vous, toujours.

@forelse ($interventions as $intervention) @php $bon = $intervention->bon_donnees ?? []; @endphp

{{ $bon['client'] ?? 'Client inconnu' }} {{ $bon['numero'] ?? '' }}

{{ $bon['adresse'] ?? '' }}

{{ $intervention->dossier_type === 'collecte' ? 'Collecte' : 'Livraison' }} du {{ $intervention->cloture_at->translatedFormat('j F Y') }} @if ($bon['operateur'] ?? null) · saisi par {{ $bon['operateur'] }} @endif

{{ $resultats[$intervention->resultat] ?? '' }}

{{ $intervention->signature_chemin ? 'Signé' : 'Sans signature' }}

@if ($intervention->corrections_count ?? $intervention->corrections()->count())

corrigé

@endif
@empty

Aucune intervention archivée ne correspond à cette recherche.

@endforelse
{{ $interventions->links() }}
@endsection