@if(str_replace('-', ' ', Request::path()) != "administration") @if(collect(["BOSS", "RESPONSABLE EXECUTION", "SERVICE TECHNIQUE"])->contains(auth()->user()->role)) @endif @endif
{{ $listeTypeOuiNons = DB::table("utilitaires")->where("type", "TYPE_OUI_NON")->where("statut", "1")->orderby("nom")->get() }}
LISTE DES ACCIDENTS
@foreach($accidents as $accident) @endforeach
VICTIME TYPE D'ACCIDENT SOIN MATERIEL DATE ACTION
{{ DB::table("personnels")->find($accident->victime)->prenom ?? '' }} {{ DB::table("personnels")->find($accident->victime)->nom ?? '' }} {{ $accident->type_accident ?? '' }} {{ $accident->soin ?? '' }} {{ $accident->materiel ?? '' }} {{ date_format(date_create($accident->date), "d/m/Y") ?? '' }} @if(collect(["BOSS", "RESPONSABLE EXECUTION", "SERVICE TECHNIQUE"])->contains(auth()->user()->role)) @endif @if(collect(["BOSS", "RESPONSABLE EXECUTION"])->contains(auth()->user()->role)) @endif
{{ $accidents->links() }}