@php use App\Services\StoreService; use App\Services\MediaService; use App\Services\CurrencyService; @endphp
{{-- --}}
@php $main_image = app(MediaService::class)->dynamic_image($product_details->image, 600); $main_image_zoom = app(MediaService::class)->dynamic_image($product_details->image, 800); @endphp
product

{{ $product_details->name }}

@php $price = app(CurrencyService::class)->currentCurrencyPrice($product_details->price, true); $special_price = $product_details->special_price && $product_details->special_price > 0 ? app(CurrencyService::class)->currentCurrencyPrice($product_details->special_price, true) : $price; @endphp @if ($special_price !== $price) {{ $price }} @endif {{ $special_price }}
{{ $product_details->short_description }}

@if (!empty($product_details->made_in))

{{ labels('front_messages.made_in', 'Made In') }}:{{ $product_details->made_in }}

@endif @if (count($product_details->tags) >= 1)

@foreach ($product_details->tags as $tag) {!! $tag !!} @endforeach

@endif @if ($product_details->stock_type != '')

Availability: {{ labels('front_messages.items_in_stock', 'Items are in stock!') }}

@endif @if (!empty($product_details->sku))

SKU:{{ $product_details->sku }}

@endif

{{ labels('front_messages.products_included_in_combo', 'Products Included In Combo') }}

@foreach ($product_details->product_details as $item) @php $item_image = app(MediaService::class)->dynamic_image($item['image'], 200); @endphp @endforeach
{{ $item['name'] }}
@foreach ($product_details->attributes as $attributes) @php $attribute_ids = explode(',', $attributes['ids']); $attribute_values = explode(',', $attributes['value']); @endphp
    @foreach ($attribute_values as $key => $val)
  • {{ $val }}
  • @endforeach
@endforeach
total_allowed_quantity }}' step='{{ $product_details->quantity_step_size }}' min='{{ $product_details->minimum_order_quantity }}' />
@php $variant_id = $product_details->id; $variant_price = $product_details->special_price; @endphp
@if ($product_details->product_type != 'digital_product')
@if ($deliverabilitySettings != false)

{{ labels('front_messages.check_product_deliverability', 'Check Product Deliverability') }}

@if ($deliverabilitySettings[0]->product_deliverability_type == 'city_wise_deliverability')
@else
@endif
@if ($deliverabilitySettings[0]->product_deliverability_type == 'city_wise_deliverability')

{{ labels('front_messages.city_not_on_list', 'If your city is not on the list') }} {{ labels('front_messages.cannot_deliver', 'we cannot deliver the product there') }}.

@endif

@endif @endif
@if ($siblingsProduct['previous_product'] != null) @php $previous_product_img = app(MediaService::class)->dynamic_image($siblingsProduct['previous_product']->image, 200); @endphp {{ $siblingsProduct['previous_product']->name }} {{ app(CurrencyService::class)->currentCurrencyPrice((float) $siblingsProduct['previous_product']->special_price, true) }} {{ $siblingsProduct['previous_product']->name }} @endif @if ($siblingsProduct['next_product'] != null) @php $next_product_img = app(MediaService::class)->dynamic_image($siblingsProduct['next_product']->image, 200); @endphp {{ $siblingsProduct['next_product']->name }} {{ $siblingsProduct['next_product']->name }} {{ app(CurrencyService::class)->currentCurrencyPrice( (float) ($siblingsProduct['next_product']->special_price > 0 ? $siblingsProduct['next_product']->special_price : $siblingsProduct['next_product']->price), true, ) }} @endif
@if ($product_details->description != '')

{!! $product_details->description !!}
@endif @if ($product_details->attributes != [])

@foreach ($product_details->attributes as $attributes) @endforeach
{{ $attributes['name'] }} {{ $attributes['value'] }}
@endif

@php $image = app(MediaService::class)->dynamic_image($product_details->image, 200); @endphp
{{ $product_details->name }}
@php // Get numeric values for comparison $priceValue = $product_details->price; $specialPriceValue = isset($product_details->special_price) && $product_details->special_price > 0 ? $product_details->special_price : null; // Determine the final price to display $finalPrice = $specialPriceValue === null || $specialPriceValue >= $priceValue ? $priceValue : $specialPriceValue; // Format price for display $displayPrice = app(CurrencyService::class)->currentCurrencyPrice($finalPrice, true); @endphp {{ $displayPrice }}
total_allowed_quantity }}' step='{{ $product_details->quantity_step_size }}' min='{{ $product_details->minimum_order_quantity }}' />