@extends('layouts.app') @section('titre', 'Bon '.($bon['numero'] ?? '')) @section('contenu') ← Retour aux archives

Bon figé à la clôture, le {{ $intervention->cloture_at?->translatedFormat('j F Y à H\hi') }}. Il porte ce qui a été présenté au client et ne se réécrit pas.

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

{{ $bon['numero'] ?? '' }} · {{ ($bon['type'] ?? '') === 'collecte' ? 'Collecte' : 'Livraison' }}

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

@if ($bon['telephone'] ?? null)

{{ $bon['telephone'] }}

@endif

Intervention

Date
@if ($bon['date'] ?? null) {{ \Carbon\CarbonImmutable::parse($bon['date'])->translatedFormat('l j F Y') }} @else Non renseignée @endif @if ($bon['periode'] ?? null) ({{ \App\Models\Tournee::PERIODES[$bon['periode']] ?? $bon['periode'] }}) @endif
Résultat
{{ $resultats[$bon['resultat'] ?? ''] ?? 'Non renseigné' }}
Véhicule
{{ $bon['vehicule'] ?? 'Non affecté' }}
Équipe
{{ implode(', ', $bon['equipiers'] ?? []) ?: 'Non renseignée' }} @if ($bon['operateur'] ?? null) · saisi par {{ $bon['operateur'] }} @endif
@if ($bon['probleme'] ?? null)

Problème signalé : {{ $bon['probleme'] }}

@endif @if ($bon['commentaire'] ?? null)

{{ $bon['commentaire'] }}

@endif

Objets

@forelse ($bon['objets'] ?? [] as $objet) @empty @endforelse
Objet Prévu Réel
{{ $objet['description'] }} @if ($objet['remontage_demande'] ?? false) (remontage demandé) @endif {{ $objet['quantite_prevue'] }} {{ $objet['quantite_reelle'] ?? '—' }}
Aucun objet enregistré.

Signature

@if ($intervention->signature_chemin)

Signé par {{ $bon['signataire'] ?? '' }}, le {{ $intervention->signe_at?->translatedFormat('j F Y à H\hi') }}.

Signature de {{ $bon['signataire'] ?? '' }} @else

Aucune signature. {{ $bon['signature_impossible_motif'] ?? $intervention->signature_impossible_motif }}

@endif

Ce bon reste interne. Il n'est jamais envoyé au client.

Corrections

Une correction s'ajoute ici. Elle ne modifie pas le bon signé au-dessus.

@forelse ($intervention->corrections as $correction)

{{ $correction->correction }}

{{ $correction->manager->name }}, le {{ $correction->created_at->translatedFormat('j F Y à H\hi') }}

@empty

Aucune correction.

@endforelse
@csrf
@if ($intervention->photos->isNotEmpty())

Photos prises sur place

@foreach ($intervention->photos as $photo) @endforeach
@endif @endsection