Loading app/Http/Controllers/DiversBySession.php +3 −3 Original line number Diff line number Diff line Loading @@ -20,11 +20,11 @@ public function getDiversBySession($ds_code): View public function getAllSessions(): View { $sessions = User::select('US_NAME', 'US_FIRST_NAME', 'DS_CODE') ->join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') $sessions = User:: join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->get(); return view('diversinsessions', ['sessions' => $sessions]); return view('diversinsessions', compact('sessions')); } } resources/views/diversinsessions.blade.php +0 −3 Original line number Diff line number Diff line <x-layout> <x-page-title>Historique des plongées</x-page-title> <div class="shadow-md max-w-full w-2/3 rounded-lg overflow-hidden border-2 mx-auto"> @if(is_array($sessions)) <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> <tr> Loading @@ -20,7 +19,5 @@ @endforeach </tbody> </table> @else @endif </div> </x-layout> Loading
app/Http/Controllers/DiversBySession.php +3 −3 Original line number Diff line number Diff line Loading @@ -20,11 +20,11 @@ public function getDiversBySession($ds_code): View public function getAllSessions(): View { $sessions = User::select('US_NAME', 'US_FIRST_NAME', 'DS_CODE') ->join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') $sessions = User:: join('CAR_REGISTRATION', 'CAR_REGISTRATION.US_ID', '=', 'CAR_USER.US_ID') ->get(); return view('diversinsessions', ['sessions' => $sessions]); return view('diversinsessions', compact('sessions')); } }
resources/views/diversinsessions.blade.php +0 −3 Original line number Diff line number Diff line <x-layout> <x-page-title>Historique des plongées</x-page-title> <div class="shadow-md max-w-full w-2/3 rounded-lg overflow-hidden border-2 mx-auto"> @if(is_array($sessions)) <table class="text-sm text-left text-gray-500 w-full"> <thead class="text-xs text-gray-700 uppercase bg-gray-50"> <tr> Loading @@ -20,7 +19,5 @@ @endforeach </tbody> </table> @else @endif </div> </x-layout>