@extends('layouts.user_type.auth') @section('content') Mise à jour d'une location × Code de la location * 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("personnels")->where("statut", "1")->get() }} @foreach($ps as $p) acquerant == $p->id ? 'selected' : '' }}>{{ $p->nom }} {{ $p->prenom }} @endforeach Chantier * chantier == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("chantiers")->where("statut", "1")->get() }} @foreach($ps as $p) chantier == $p->id ? 'selected' : '' }}>{{ $p->description }} @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é louée * Date de la location * Date prévue pour la restitution * LISTE DES LOCATIONS AUTORITE ACQUERANT CHANTIER DESCRIPTION MATERIEL QUANTITE LOUEE DATE DE LOCATION DATE PREVUE POUR LA RESTITUTION ACTION @foreach($locations as $location) {{ DB::table("personnels")->find($location->autorite)->prenom }} {{ DB::table("personnels")->find($location->autorite)->nom }} {{ DB::table("personnels")->find($location->acquerant)->prenom }} {{ DB::table("personnels")->find($location->acquerant)->nom }} {{ DB::table("chantiers")->find($location->chantier)->code_chantier }} {{ $location->description }} {{ DB::table("materiaus")->find($location->materiel)->nom }} {{ $location->quantite_louer }} {{ $location->date_location }} {{ $location->date_prevue_restitution }} @endforeach {{ $locations->links() }} @endsection