@extends('admin.layout') @section('title') Details Chantier @endsection @section('content')

Détail du Chantier

{{ $chantier->nom ?? '' }}

{{ $chantier->adresse ?? '' }}

{{ $chantier->nom ?? '' }}

{{ $chantier->adresse ?? '' }}

{{ $chantier->date_de_debut ?? '' }}

{{ $chantier->date_de_fin ?? '' }}

@if($chantier->date_fin_reelle)

{{ $chantier->date_fin_reelle ?? '' }}

@endif

{{ $chantier->nbjours ?? '' }}

@if($chantier->date_fin_reelle)

{{ $chantier->nbjours_reelle ?? '' }}

@endif @if($chantier->date_fin_reelle)
@php $difference = $chantier->nbjours - $chantier->nbjours_reelle; @endphp @if($difference < 0) {{ $difference ?? '' }} jours de retard @else {{ $difference ?? '' }} jours en avance @endif
@endif

Liste Des Taches

@if(count($taches) > 0 ) @foreach($taches as $tache) @endforeach @else @endif @if(count($taches) > 0 ) @endif
Tache Date de Debut Date de Fin Nombre de jours Salariés Status
@if($tache->photo && !empty($tache->photo) && isset($tache->photo[0]) && file_exists(public_path('uploads/' . $tache->photo[0]))) Photo @else No Image @endif {{ $tache->nom ?? '' }}
{{ $tache->date_debut ?? '' }}
{{ $tache->date_fin ?? '' }}
{{ $tache->nb_jours ?? '' }}
@if($tache->employees) @foreach($tache->employees as $employeeId) @php $employee = \App\Models\User::find($employeeId); @endphp @if($employee) {{ $employee->prenom ?? '' }} {{ $employee->name ?? '' }}, @endif @endforeach @endif @if($tache->status == 'pending') En Attente @elseif($tache->status == 'in_progress') En Cours @elseif($tache->status == 'completed') Complété @endif Modifier Supprimer

Aucune tache a afficher

Nombre de jours total
{{ $total_nb_jours ?? '' }}
@endsection @section('script') @endsection