style: use import

This commit is contained in:
Rico van Zelst
2023-11-06 17:28:35 +01:00
parent 41ccc95c03
commit ae1c9f0843

View File

@@ -1,3 +1,4 @@
@php use Carbon\Carbon; @endphp
<?php /** @var App\Models\ChampionSkin $skin */ ?> <?php /** @var App\Models\ChampionSkin $skin */ ?>
<section class="text-white bg-stone-900"> <section class="text-white bg-stone-900">
@@ -24,7 +25,7 @@
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<h2 class="mt-4 text-xl font-bold text-white">{{ $skin->skin_name }}</h2> <h2 class="mt-4 text-xl font-bold text-white">{{ $skin->skin_name }}</h2>
<h3 class=" text-stone-200">Released <h3 class=" text-stone-200">Released
{{ \Carbon\Carbon::parse($skin->release_date)->diffForHumans([ {{ Carbon::parse($skin->release_date)->diffForHumans([
'parts' => 2, 'parts' => 2,
'join' => true, 'join' => true,
]) }} ]) }}