price function global (needs review)

This commit is contained in:
elvira
2026-08-08 15:10:37 +03:00
parent e46276a31b
commit 7677d10821
8 changed files with 65 additions and 7 deletions
@@ -28,7 +28,7 @@ class="w-full h-auto block"
<div class="flex items-baseline justify-between gap-4">
<a href="{{ $href }}" class="font-bold text-xl leading-snug hover:text-brand">{{ $name }}</a>
@if($price !== null)
<span class="font-bold text-xl shrink-0">$ {{ $price }}</span>
<span class="font-bold text-xl shrink-0"><x-ui.price :amount="$price" /></span>
@endif
</div>
</div>