Loading app/Http/Controllers/DivingNumberController.php +4 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,10 @@ public function index(): View $dateDives = DivingNumberModel::join('car_registration', 'car_user.us_id', '=', 'car_registration.us_id') ->join('car_diving_session','car_registration.ds_code','=','car_diving_session.ds_code') ->join('car_diving_location','car_diving_session.dl_id','=','car_diving_location.dl_id') ->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_user.US_ID',3) ->get(); Loading resources/views/diveractivities.blade.php +10 −5 Original line number Diff line number Diff line <x-layout> <x-page-title>Historique des plongées</x-page-title> @if(!session()->has('user')) Vous devez être connecté pour accéder à cette page. @else <x-page-title>Historique des plongées de {{ session('user')->US_FIRST_NAME . " " . session('user')->US_NAME }}</x-page-title> <div class="shadow-md max-w-full w-1/3 rounded-lg overflow-hidden border-2 mx-auto"> <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> Loading @@ -19,20 +22,22 @@ <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> <tr> <th scope="col" class="px-6 py-3">Nom</th> <th scope="col" class="px-6 py-3">Prénom</th> <th scope="col" class="px-6 py-3">Lieu</th> <th scope="col" class="px-6 py-3">Date</th> <th scope="col" class="px-6 py-3">Rôle</th> </tr> </thead> <tbody> @foreach($dates as $date) <tr class="odd:bg-white even:bg-gray-50 border-b"> <td class="px-6 py-4">{{ $date->US_NAME }}</td> <td class="px-6 py-4">{{ $date->US_FIRST_NAME }}</td> <td class="px-6 py-4">{{ $date->DL_NAME }}</td> <td class="px-6 py-4">{{ $date->DS_DATE }}</td> <td class="px-6 py-4">{{ $date->ROL_LABEL }}</td> </tr> @endforeach </tbody> </table> </div> @endif </x-layout> Loading
app/Http/Controllers/DivingNumberController.php +4 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,10 @@ public function index(): View $dateDives = DivingNumberModel::join('car_registration', 'car_user.us_id', '=', 'car_registration.us_id') ->join('car_diving_session','car_registration.ds_code','=','car_diving_session.ds_code') ->join('car_diving_location','car_diving_session.dl_id','=','car_diving_location.dl_id') ->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_user.US_ID',3) ->get(); Loading
resources/views/diveractivities.blade.php +10 −5 Original line number Diff line number Diff line <x-layout> <x-page-title>Historique des plongées</x-page-title> @if(!session()->has('user')) Vous devez être connecté pour accéder à cette page. @else <x-page-title>Historique des plongées de {{ session('user')->US_FIRST_NAME . " " . session('user')->US_NAME }}</x-page-title> <div class="shadow-md max-w-full w-1/3 rounded-lg overflow-hidden border-2 mx-auto"> <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> Loading @@ -19,20 +22,22 @@ <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> <tr> <th scope="col" class="px-6 py-3">Nom</th> <th scope="col" class="px-6 py-3">Prénom</th> <th scope="col" class="px-6 py-3">Lieu</th> <th scope="col" class="px-6 py-3">Date</th> <th scope="col" class="px-6 py-3">Rôle</th> </tr> </thead> <tbody> @foreach($dates as $date) <tr class="odd:bg-white even:bg-gray-50 border-b"> <td class="px-6 py-4">{{ $date->US_NAME }}</td> <td class="px-6 py-4">{{ $date->US_FIRST_NAME }}</td> <td class="px-6 py-4">{{ $date->DL_NAME }}</td> <td class="px-6 py-4">{{ $date->DS_DATE }}</td> <td class="px-6 py-4">{{ $date->ROL_LABEL }}</td> </tr> @endforeach </tbody> </table> </div> @endif </x-layout>