diff --git a/database/seeders/SummonerIconSeeder.php b/database/seeders/SummonerIconSeeder.php index 286e243..e5b5a22 100644 --- a/database/seeders/SummonerIconSeeder.php +++ b/database/seeders/SummonerIconSeeder.php @@ -19,6 +19,10 @@ class SummonerIconSeeder extends Seeder $changeCount = 0; foreach ($iconData as $icon) { + if ($icon['yearReleased'] === 0) { + continue; + } + $iconId = $icon['id']; $iconExists = SummonerIcon::where('icon_id', $iconId)->first(); diff --git a/resources/views/components/icons/searchbar.blade.php b/resources/views/components/icons/searchbar.blade.php index f8259c7..7302e5b 100644 --- a/resources/views/components/icons/searchbar.blade.php +++ b/resources/views/components/icons/searchbar.blade.php @@ -1,5 +1,5 @@
-
+
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('champions.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> Champions
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:hover:text-orange-500 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('skins.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> Skins
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:hover:text-orange-500 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('assets.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> Assets
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:hover:text-orange-500 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('sale.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> Sale Rotation
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:hover:text-orange-500 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('posts.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> Posts
  • + class="flex py-2 pl-3 pr-2 rounded hover:bg-stone-100 md:hover:bg-transparent + md:border-0 md:hover:text-orange-500 md:p-0 md:dark:hover:text-orange-400 + dark:hover:bg-stone-700 dark:hover:text-white md:dark:hover:bg-transparent + {{ request()->routeIs('info.*') ? 'text-orange-400 font-medium' : 'text-white' }}"> About
  • diff --git a/routes/web.php b/routes/web.php index caaac3e..9763332 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,17 +20,17 @@ use App\Http\Controllers\SummonerIconController; Route::get('/', [HomeController::class, 'index']); // Champions -Route::get('/champions', [ChampionController::class, 'index']); -Route::get('/champion/{champion}', [ChampionController::class, 'show']); +Route::get('/champions', [ChampionController::class, 'index'])->name('champions.index'); +Route::get('/champion/{champion}', [ChampionController::class, 'show'])->name('champions.show'); // Skins Route::get('/skins', [ChampionSkinController::class, 'index'])->name('skins.index'); Route::get( '/skin/{championSkin}', [ChampionSkinController::class, 'show'] -); +)->name('skins.show'); // Icons Route::get('/icons', [ SummonerIconController::class, 'index' -])->name('icons.index'); +])->name('assets.icons.index');