Intervention #{{ $intervention->id }}
@php $statutClasses = [ 'nouvelle' => 'badge-statut-nouvelle', 'en_cours' => 'badge-statut-en_cours', 'termine' => 'badge-statut-termine', 'annule' => 'badge-statut-annule', 'cloture' => 'badge-statut-cloture', ]; $statutText = [ 'nouvelle' => 'Nouvelle', 'en_cours' => 'En cours', 'termine' => 'Terminée', 'annule' => 'Annulée', 'cloture' => 'Clôturée', ]; @endphp {{ $statutText[$intervention->statut] ?? ucfirst($intervention->statut) }} @php $urgenceClasses = [ 'critique' => 'badge-urgence-critique', 'haute' => 'badge-urgence-haute', 'moyenne' => 'badge-urgence-moyenne', 'faible' => 'badge-urgence-faible', ]; $urgenceText = [ 'critique' => 'Critique', 'haute' => 'Haute', 'moyenne' => 'Moyenne', 'faible' => 'Faible', ]; @endphp {{ $urgenceText[$intervention->urgence] ?? ucfirst($intervention->urgence) }}
Créée le : {{ $intervention->created_at->format('d/m/Y à H:i') }}
Priorité : {{ $intervention->priorite ?? 'Standard' }}
Imprimer
Détails du Véhicule
Code équipement :
{{ $intervention->vehicule->code_equipement ?? 'N/A' }}
Marque :
{{ $intervention->vehicule->marque ?? 'N/A' }}
Modèle :
{{ $intervention->vehicule->modele ?? 'N/A' }}
Immatriculation :
{{ $intervention->vehicule->immatriculation ?? 'N/A' }}
État :
{{ $intervention->operational_status == 'operational' ? 'Opérationnel' : 'Hors service' }}
Informations Chauffeur
Nom complet :
{{ $intervention->user->name ?? 'N/A' }}
Téléphone :
{{ $intervention->user->telephone ?? 'N/A' }}
Service :
{{ $intervention->user->service ?? 'N/A' }}
Date déclaration :
{{ $intervention->date_soumission ? $intervention->date_soumission->format('d/m/Y H:i') : 'N/A' }}
Détails de l'Incident
Type de panne :
{{ ucfirst($intervention->type_panne) ?? 'N/A' }}
Type d'intervention :
{{ $intervention->type_intervention ?? 'N/A' }}
Date incident :
{{ $intervention->incident_date ? \Carbon\Carbon::parse($intervention->incident_date)->format('d/m/Y') : 'N/A' }}
Heure incident :
{{ $intervention->incident_time ?? 'N/A' }}
Date souhaitée :
@if($intervention->date_souhaitee)
{{ \Carbon\Carbon::parse($intervention->date_souhaitee)->format('d/m/Y') }}
@else
Non définie
@endif
Description du Problème
@if($intervention->description)
@endif
@if($intervention->commentaire)
{{ $intervention->description }}
@elseif($intervention->symptomes && is_array($intervention->symptomes))-
@foreach($intervention->symptomes as $symptome)
- {{ $symptome }} @endforeach
Aucune description disponible
Commentaire supplémentaire :
{{ $intervention->commentaire }}
Images de la Panne
@if($intervention->photos && is_array($intervention->photos) && count($intervention->photos) > 0)
@elseif($intervention->image_path)
@else
@endif
@if($intervention->cout_reel)
{{ number_format($intervention->cout_reel, 2, ',', ' ') }} €
@endif
@foreach($intervention->photos as $index => $photo)
@endforeach
{{ count($intervention->photos) }} image(s) disponible(s)
Aucune image disponible
Aucune photo n'a été ajoutée à cette intervention
Coût réel :
Coût final de l'intervention
Historique des Actions
Création de l'intervention
{{ $intervention->created_at->format('d/m/Y H:i') }}
Intervention créée par {{ $intervention->user->name ?? 'un utilisateur' }}
Assignation au responsable
{{ $intervention->updated_at->format('d/m/Y H:i') }}
Assignée à {{ $intervention->responsable->name }}
Début du traitement
{{ \Carbon\Carbon::parse($intervention->date_traitement)->format('d/m/Y H:i') }}
Traitement de l'intervention débuté
Clôture de l'intervention
{{ \Carbon\Carbon::parse($intervention->date_cloture)->format('d/m/Y H:i') }}
Intervention clôturée
@if($intervention->cout_reel)
avec un coût de {{ number_format($intervention->cout_reel, 2, ',', ' ') }} €
@endif
Aucun commentaire
Les commentaires et notes internes apparaîtront ici. Commencez par ajouter le premier commentaire.