@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() }}
| VICTIME |
TYPE D'ACCIDENT |
SOIN |
MATERIEL |
DATE |
ACTION |
@foreach($accidents as $accident)
|
{{ 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
|
@endforeach
{{ $accidents->links() }}
@endsection