Commit c7722898 authored by LucBUTGH's avatar LucBUTGH
Browse files

feat: history divings done

parent b54ab9ec
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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'));
    
    }
}
+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>
@@ -20,7 +19,5 @@
                    @endforeach
                </tbody>
            </table>
        @else
        @endif
    </div>
</x-layout>