This commit is contained in:
Marley Rae 2022-04-27 19:00:21 -07:00
parent ee075c543e
commit 985febc962
3 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,8 @@
<a href="{{ route('admin.joined.create') }}" class="l-page-nav__link">Add New</a>
@break
@case('owned')
<a href="{{ route('admin.owned.index') }}" class="l-page-nav__link">All Owned</a>
<a href="{{ route('admin.owned.create') }}" class="l-page-nav__link">Add New</a>
@break
@default

View file

@ -30,7 +30,7 @@
Approve
</button>
@elseif ($class == 'owned')
<a href="#" class="btn--table">View</a>
<a href="{{ route('admin.owned.show', $fl) }}" class="btn--table">View</a>
@endif
</td>

View file

@ -43,6 +43,7 @@
Route::get('/fanatic/owned', [OwnedController::class, 'index'])->name('admin.owned.index');
Route::get('/fanatic/owned/create', [OwnedController::class, 'create'])->name('admin.owned.create');
Route::post('/fanatic/owned', [OwnedController::class, 'store'])->name('admin.owned.store');
Route::get('/fanatic/owned/{owned}', [OwnedController::class, 'show'])->name('admin.owned.show');
Route::get('/fanatic/owned/{owned}/edit', [OwnedController::class, 'edit'])->name('admin.owned.edit');
Route::patch('/fanatic/owned/{owned}', [OwnedController::class, 'update'])->name('admin.owned.update');
Route::delete('/fanatic/owned/{owned}', [OwnedController::class, 'destroy'])->name('admin.owned.destroy');