BK

Détails de l'Intervention

Référence : {{ $intervention->reference ?? '#'.$intervention->id }}

Retour à la liste

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)

{{ $intervention->description }}

@elseif($intervention->symptomes && is_array($intervention->symptomes))
    @foreach($intervention->symptomes as $symptome)
  • {{ $symptome }}
  • @endforeach
@else

Aucune description disponible

@endif
@if($intervention->commentaire)

Commentaire supplémentaire :

{{ $intervention->commentaire }}

@endif

Images de la Panne

@if($intervention->photos && is_array($intervention->photos) && count($intervention->photos) > 0)
@foreach($intervention->photos as $index => $photo)
Image de la panne {{ $index + 1 }}
Image {{ $index + 1 }}
@endforeach

{{ count($intervention->photos) }} image(s) disponible(s)

@elseif($intervention->image_path)
Image de la panne
Image de la panne
@else

Aucune image disponible

Aucune photo n'a été ajoutée à cette intervention

@endif @if($intervention->cout_reel)

Coût réel :

Coût final de l'intervention

{{ number_format($intervention->cout_reel, 2, ',', ' ') }} €
@endif

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' }}
@if($intervention->responsable)
Assignation au responsable {{ $intervention->updated_at->format('d/m/Y H:i') }}
Assignée à {{ $intervention->responsable->name }}
@endif @if($intervention->date_traitement)
Début du traitement {{ \Carbon\Carbon::parse($intervention->date_traitement)->format('d/m/Y H:i') }}
Traitement de l'intervention débuté
@endif @if($intervention->date_cloture)
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
@endif

Aucun commentaire

Les commentaires et notes internes apparaîtront ici. Commencez par ajouter le premier commentaire.