feat: caching

This commit is contained in:
Rico van Zelst
2023-11-06 21:47:51 +01:00
parent 3d6c00dd0d
commit 90e36c74ec
5 changed files with 39 additions and 32 deletions

View File

@@ -15,39 +15,33 @@
</p>
</div>
<div class="grid grid-cols-1 gap-4 mt-8 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3">
@foreach ($skins as $skin)
@if($skin->availability == "Upcoming")
<div
class="p-8 transition border shadow-xl border-stone-800 rounded-xl hover:border-orange-500/10 hover:shadow-orange-500/10">
<div class="flex flex-col">
@foreach ($upcomingSkins as $skin)
<div
class="p-8 transition border shadow-xl border-stone-800 rounded-xl hover:border-orange-500/10 hover:shadow-orange-500/10">
<div class="flex flex-col">
<div class="flex flex-col items-center justify-center">
<img loading="lazy" class="border-2 border-orange-400/40 rounded-xl"
src="{{ $skin->getSkinImageAttribute(true) }}"
alt="{{ $skin->skin_name }} Splash Art">
<div class="flex flex-col items-center justify-center">
<img loading="lazy" class="border-2 border-orange-400/40 rounded-xl"
src="{{ $skin->getSkinImageAttribute(true) }}"
alt="{{ $skin->skin_name }} Splash Art">
<div class="flex flex-col items-center justify-center">
<h2 class="mt-4 text-xl font-bold text-white">{{ $skin->skin_name }}</h2>
<p class="mt-1 text-sm text-stone-300">
@if ($skin->rp_price == '99999')
Not Available for RP
@else
{{ $skin->rp_price }} RP
@endif
</p>
<p class="mt-1 text-sm italic text-stone-300">
@if ($skin->loot_eligible)
Can be obtained from loot
@endif
</p>
</div>
<h2 class="mt-4 text-xl font-bold text-white">{{ $skin->skin_name }}</h2>
<p class="mt-1 text-sm text-stone-300">
@if ($skin->rp_price == '99999')
Not Available for RP
@else
{{ $skin->rp_price }} RP
@endif
</p>
<p class="mt-1 text-sm italic text-stone-300">
@if ($skin->loot_eligible)
Can be obtained from loot
@endif
</p>
</div>
</div>
</div>
@endif
</div>
@endforeach
</div>
</div>
</section>