Commit d4d76523 authored by Julien Sailly's avatar Julien Sailly
Browse files
parents 315bdef3 008b092d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -71,6 +71,12 @@ class="w-full py-2.5 px-4 text-sm bg-gray-300 rounded-md focus:outline-none focu
        </label>
    </div>

    @if (Session::has('Success') && Session::get('DS_CODE') == $dive->DS_CODE)
        <div style="margin-bottom: 40px">
            <x-popup>{{ Session::get('Success') }}</x-popup>
        </div>
    @endif

    <div class="shadow-md max-w-full rounded-lg overflow-hidden border-2">
        <table class="text-sm text-left text-gray-500 w-full">
            <thead class="text-xs text-gray-700 uppercase bg-gray-50">
@@ -207,9 +213,6 @@ class="aligne m-1 bg-gray-400 hover:bg-gray-500
            </ul>
        </div>
    @endif
    @if (Session::has('Success') && Session::get('DS_CODE') == $dive->DS_CODE)
        <div class="text-green-500">{{ Session::get('Success') }}</div>
    @endif
    </td>
    </tr>
    <x-drop-down id="dropdown{{ $dive->DS_CODE }}">
+3 −1
Original line number Diff line number Diff line
@@ -194,7 +194,9 @@
 * Delete a diving session.
 * @param $id the code of the diving session
 */
Route::post('/dive/delete/{id}', function ($id, Request $request) {
Route::post('/dive/delete/{id}', function ($id, Request $request)
{
    $res = DivingSession::disable($id);
    return redirect('/create/dive');
});