@extends('layouts.user_type.auth') @section('content') Mise à jour d'un prêt × Code du pret * Autorité * autorite == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->where("grade", "RESPONSABLE EXECUTION")->orWhere("grade", "BOSS")->get() }} @foreach($ps as $p) autorite == $p->id ? 'selected' : '' }}>{{ $p->nom }} {{ $p->prenom }} @endforeach Acquérant * acquerant == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("collaborateurs")->where("statut", "1")->where("type", "LOCATAIRE")->get() }} @foreach($ps as $p) acquerant == $p->id ? 'selected' : '' }}>{{ $p->nom }} @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é prêtée * Date du prêt * Date prévue pour la restitution * LISTE DES PRETS AUTORITE ACQUERANT MATERIEL QUANTITE LOUEE ACTION @foreach($prets as $pret) {{ DB::table("personnels")->find($pret->autorite)->prenom }} {{ DB::table("personnels")->find($pret->autorite)->nom }} {{ DB::table("collaborateurs")->find($pret->acquerant)->nom }} {{ DB::table("materiaus")->find($pret->materiel)->nom }} {{ $pret->quantite_louer }} @endforeach {{ $prets->links() }} @endsection