Loading app/Http/Controllers/AdherentController.php +4 −1 Original line number Diff line number Diff line Loading @@ -12,9 +12,12 @@ class AdherentController extends Controller static function index($level): View { $adherents = User::selectRaw('US_FIRST_NAME,US_NAME,US_LICENCE_ID') $adherents = User::selectRaw('US_FIRST_NAME,US_NAME,US_LICENCE_ID, ROL_LABEL') ->join('car_prerogative','car_prerogative.pre_code','=','car_user.pre_code') ->join('car_role_attribution','CAR_USER.US_ID','=','CAR_ROLE_ATTRIBUTION.US_ID') ->join('car_role','CAR_ROLE_ATTRIBUTION.ROL_CODE','=','CAR_ROLE.ROL_CODE') ->where('car_prerogative.pre_level','>=',$level) ->where('CAR_ROLE.ROL_CODE','=','DIV') ->get(); return view('adherents', ['adherents' => $adherents]); Loading resources/views/adherents.blade.php +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ <tr> <th scope="col" class="px-6 py-4">Prénom</th> <th scope="col" class="px-6 py-4">Nom</th> <th scope="col" class="px-6 py-4">Rôle</th> <th scope="col" class="px-6 py-4">N° Licence</th> </tr> </thead> Loading @@ -16,6 +17,7 @@ <td class="px-6 py-4">{{ $adherent->US_NAME }}</td> <td class="px-6 py-4">{{ $adherent->US_FIRST_NAME }}</td> <td class="px-6 py-4">{{ $adherent->US_LICENCE_ID }}</td> <td class="px-6 py-4">{{ $adherent->ROL_LABEL }}</td> </tr> @endforeach Loading Loading
app/Http/Controllers/AdherentController.php +4 −1 Original line number Diff line number Diff line Loading @@ -12,9 +12,12 @@ class AdherentController extends Controller static function index($level): View { $adherents = User::selectRaw('US_FIRST_NAME,US_NAME,US_LICENCE_ID') $adherents = User::selectRaw('US_FIRST_NAME,US_NAME,US_LICENCE_ID, ROL_LABEL') ->join('car_prerogative','car_prerogative.pre_code','=','car_user.pre_code') ->join('car_role_attribution','CAR_USER.US_ID','=','CAR_ROLE_ATTRIBUTION.US_ID') ->join('car_role','CAR_ROLE_ATTRIBUTION.ROL_CODE','=','CAR_ROLE.ROL_CODE') ->where('car_prerogative.pre_level','>=',$level) ->where('CAR_ROLE.ROL_CODE','=','DIV') ->get(); return view('adherents', ['adherents' => $adherents]); Loading
resources/views/adherents.blade.php +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ <tr> <th scope="col" class="px-6 py-4">Prénom</th> <th scope="col" class="px-6 py-4">Nom</th> <th scope="col" class="px-6 py-4">Rôle</th> <th scope="col" class="px-6 py-4">N° Licence</th> </tr> </thead> Loading @@ -16,6 +17,7 @@ <td class="px-6 py-4">{{ $adherent->US_NAME }}</td> <td class="px-6 py-4">{{ $adherent->US_FIRST_NAME }}</td> <td class="px-6 py-4">{{ $adherent->US_LICENCE_ID }}</td> <td class="px-6 py-4">{{ $adherent->ROL_LABEL }}</td> </tr> @endforeach Loading