@extends('layouts.user_type.auth') @section('content') {{ $listeTypeContraventions = DB::table("utilitaires")->where("type", "TYPE_CONTRAVENTION")->where("statut", "1")->orderby("nom")->get() }} {{ $listeTypeOuiNons = DB::table("utilitaires")->where("type", "TYPE_OUINON")->where("statut", "1")->orderby("nom")->get() }} Mise à jour d'une contravention × Type * type == '' ? 'selected' : '' }}>Choisir . . . @foreach($listeTypeContraventions as $typeContravention) type == $typeContravention->nom ? 'selected' : '' }}>{{$typeContravention->nom}} @endforeach Qui ? * Choisir . . . {{ $ps = DB::table("personnels")->where("statut", "1")->orderby("nom")->get() }} @foreach($ps as $p) qui == $p->id ? 'selected' : '' }}>{{ $p->prenom }} {{ $p->nom }} @endforeach Quand ? * Pourquoi ? * Combien ? * Reférence Payé ? Choisir . . . @foreach($listeTypeOuiNons as $typeOuiNon) payer == $typeOuiNon->nom ? 'selected' : '' }}>{{$typeOuiNon->nom}} @endforeach LISTE DES CONTRAVENTIONS TYPE QUI QUAND COMBIEN PAYER ACTION @foreach($contraventions as $contravention) {{ $contravention->type }} {{ DB::table("personnels")->find($contravention->qui)->prenom }} {{ DB::table("personnels")->find($contravention->qui)->nom }} {{ $contravention->quand }} {{ $contravention->montant }} {{ $contravention->payer }} @endforeach {{ $contraventions->links() }} @endsection