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
+1 -1
View File
@@ -152,7 +152,7 @@ class="absolute bottom-6 right-8 text-white text-sm"
@if($product->variants->first()?->prices->isNotEmpty())
<p class="text-2xl font-bold" data-product-form-target="price">
€{{ number_format($product->variants->first()->prices->first()->price->decimal, 2) }}
<x-ui.price :amount="$product->variants->first()->prices->first()->price->decimal" />
</p>
@endif
+1 -1
View File
@@ -152,7 +152,7 @@ class="absolute bottom-6 right-8 text-white text-sm"
@if($product->variants->first()?->prices->isNotEmpty())
<p class="text-2xl font-bold" data-product-form-target="price">
€{{ number_format($product->variants->first()->prices->first()->price->decimal, 2) }}
<x-ui.price :amount="$product->variants->first()->prices->first()->price->decimal" />
</p>
@endif