Commit 9e91a4fa authored by Waterfox's avatar Waterfox
Browse files

Fix boat issues

parent d5b0d4df
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@
use App\Models\DivingLocation;
use App\Models\Boat;
use App\Models\Prerogative;


Route::get('/login', function () {
    return view('login', ['wrongPassword' => false]);
})->name('login');
@@ -68,7 +70,7 @@

    if(is_string($pre))
    {
        return view('create_dive', ['locations' => DivingLocation::all(),  'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre]);
        return view('create_dive', ['locations' => DivingLocation::all(),  'boats' => Boat::all(), 'levels' => Prerogative::all()->skip(3), 'users' => User::all(), 'error' => $pre, 'previousDives' => session()->get('previousDives')]);
    }
    else
    {