LISTE DES EMPRUNTS
@foreach($emprunts as $emprunt) @endforeach
CODE DE L'EMPRUNT ACQUERANT MATERIEL DATE DE EMPRUNT ETAT DE RESTITUTION ACTION
{{ $emprunt->code_emprunt ?? '' }} {{ DB::table("personnels")->find($emprunt->acquerant)->prenom ?? '' }} {{ DB::table("personnels")->find($emprunt->acquerant)->nom ?? '' }} {{ DB::table("materiaus")->find($emprunt->materiel)->nom ?? '' }} {{ $emprunt->date_emprunt ?? '' }} {{ $emprunt->date_restitution ?? '' }} {{ $emprunt->restitution == 0 ? "EN ATTENTE" : "" }} {{ $emprunt->restitution == 1 ? "PARTIELLE" : "" }} {{ $emprunt->restitution == 2 ? "TOTALE" : "" }} @if(collect(["BOSS", "RESPONSABLE EXECUTION", "SERVICE TECHNIQUE"])->contains(auth()->user()->role)) @endif
{{ $emprunts->links() }}