@extends('layouts.user_type.auth') @section('content') Restitution d'un emprunt × Quantité restituée * Date de restitution * Code de l'emprunt * Propriétaire * acquerant == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("collaborateurs")->where("statut", "1")->where("type", "PROPRIETAIRE")->get() }} @foreach($ps as $p) acquerant == $p->id ? 'selected' : '' }}>{{ $p->nom }} @endforeach Acquérant * proprietaire == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->get() }} @foreach($ps as $p) proprietaire == $p->id ? 'selected' : '' }}>{{ $p->nom }} {{ $p->prenom }} @endforeach Description Matériel * materiel == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("materiaus")->where("statut", "1")->get() }} @foreach($ps as $p) materiel == $p->id ? 'selected' : '' }}>{{ $p->nom }} @endforeach Quantité empruntée * Date de l'emprunt * Date prévue pour la restitution * LISTE DES EMPRUNTS PROPRIETAIRE ACQUERANT MATERIEL QUANTITE LOUEE ACTION @foreach($emprunts as $emprunt) {{ DB::table("collaborateurs")->find($emprunt->proprietaire)->nom ?? '' }} {{ DB::table("personnels")->find($emprunt->acquerant)->nom ?? '' }} {{ DB::table("materiaus")->find($emprunt->materiel)->nom ?? '' }} {{ $emprunt->quantite_louer ?? '' }} @endforeach {{ $emprunts->links() }} @endsection