mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: skin rarity color
This commit is contained in:
@@ -18,7 +18,16 @@ class ChampionSkinController extends Controller
|
||||
return ChampionSkin::orderBy('id')->paginate(16);
|
||||
});
|
||||
|
||||
return view('skins.index', compact('skins'));
|
||||
$rarityColor = [
|
||||
'Common' => 'text-stone-300',
|
||||
'Epic' => 'text-blue-400',
|
||||
'Legendary' => 'text-red-500',
|
||||
'Rare' => 'text-pink-300',
|
||||
'Mythic' => 'text-purple-500',
|
||||
'Ultimate' => 'text-yellow-400',
|
||||
];
|
||||
|
||||
return view('skins.index', compact('skins', 'rarityColor'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user