@if ($product) {{ $product->title }} @if ($product->attributes) @php $attributes_arr = $product->attributes ? json_decode($product->attributes, true) : []; @endphp @else @php $additional_price = isset($attribute['additional_price']) ? float_amount_with_currency_symbol($attribute['additional_price']) : 0; $attribute_arr = [ 'price' => $product->sale_price ?? 0 ]; @endphp @endif {{ float_amount_with_currency_symbol($product->sale_price) }} @endif