@extends('layouts.user_type.auth') @section('content') @if(str_replace('-', ' ', Request::path()) != "administration") Ajouter une location @endif Restitution d'une location × Quantité restituée * Date de restitution * Code de la location Locataire locataire == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->where("grade", "CHEF CHANTIER")->get() }} @foreach($ps as $p) locataire == $p->id ? 'selected' : '' }}>{{ $p->nom }} {{ $p->prenom }} @endforeach Bénéficiaire beneficiaire == "" ? 'selected' : '' }}>Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->get() }} @foreach($ps as $p) beneficiaire == $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 LOCATAIRE BENEFICIAIRE CHANTIER DESCRIPTION MATERIEL QUANTITE LOUEE DATE DE LOCATION DATE PREVUE POUR LA RESTITUTION ACTION @foreach($locations as $location) {{ DB::table("personnels")->find($location->locataire)->nom }} {{ DB::table("personnels")->find($location->locataire)->prenom }} {{ DB::table("personnels")->find($location->beneficiaire)->nom }} {{ DB::table("personnels")->find($location->beneficiaire)->prenom }} {{ 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