@extends('admin.layouts.app') @push('page-header')

Gestion Interventions

@endpush @section('content')
Aperçu @if(!auth()->user()->role === 'super-admin') Modifier @endif Ajouter sous-intervention

État initial d'équipement

{{$intervention->etat_initial}}

Description de la Panne

{{$intervention->description_panne}}

Heure/Date d'appel client

{{date('d-m-Y h:m A', strtotime($intervention->appel_client))}}

Mode d'appel client

{{$intervention->mode_appel}}

Intervenant(s)

@if (is_array($intervention->destinateur)) {{ implode(', ', $intervention->destinateur) }} @endif

Sous-traitant

@if($intervention->soustraitant)

{{$intervention->soustraitant->name}}@endif

Date/Heure de début

{{date('d-m-Y h:m A', strtotime($intervention->date_debut))}}

Date/Heure de fin

{{date('d-m-Y h:m A', strtotime($intervention->date_fin))}}

Description de l'intervention

{{$intervention->description_intervention}}

État final d'équipement

{{$intervention->etat_final}}

@if($intervention->sousinterventions->isEmpty())
Pas de sous intervention.
@else

Historique des sous-interventions

@foreach ($sousinterventions as $sousintervention) @endforeach
Date début Etat initial Intervenant(s) Description Etat final Date fin Actions
{{$sousintervention->date_debut}} {{$sousintervention->etat_initial}} @if (is_array($sousintervention->intervenant)) {{ implode(', ', $sousintervention->intervenant) }} @endif {{$sousintervention->description_panne}} {{$sousintervention->etat_final}} {{$sousintervention->date_fin}}
@endif @foreach($sousinterventions as $sousintervention) @endforeach
@endsection @push('page-js') @endpush