@php use App\Services\StoreService; use App\Services\MediaService; use App\Services\CurrencyService; @endphp
{{-- --}}

{{ $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 (!empty($product_details->sku))

{{ labels('front_messages.sku', 'SKU') }}:{{ $product_details->sku }}

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

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

@endif @if ($product_details->stock_type != '')
{{ labels('front_messages.currently', 'Currently') }} , {{ labels('front_messages.items_in_stock', 'Items are in stock!') }}
@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 {{-- @dd($product_details->attributes); --}}
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 {{-- {{ dd($product_details)}} --}}
{{-- @dd($product_details) --}}
@if ($product_details->product_type == 'digital_product')
{{ labels('front_messages.digital_product', 'Digital Product') }}
@else
@if (!empty($product_details->guarantee_period)) {{ $product_details->guarantee_period }} @else {{ labels('front_messages.no_guarantee', 'No Guarantee') }} @endif
@if (!empty($product_details->warranty_period)) {{ $product_details->warranty_period }} @else {{ labels('front_messages.no_warranty', 'No Warranty') }} @endif
{{ $product_details->is_returnable == 1 ? 'Returnable' : 'Non Returnable' }}
{{ $product_details->cod_allowed == 1 ? 'Cash on Delivery available' : 'Cash on Delivery Not available' }}
@if ($product_details->is_cancelable == 1) {{ labels('front_messages.cancel_till', 'Cancel Till') }} {{ $product_details->cancelable_till }} @else {{ labels('front_messages.non_cancelable', 'Non Cancelable') }} @endif
@if ($product_details->stock_type != '')

{{ labels('front_messages.availability', 'Availability') }}: @if ($product_details->availability >= 1) {{ labels('front_messages.in_stock', 'In stock') }}: @else {{ labels('front_messages.out_of_stock', 'Out of Stock') }}: @endif

@endif @endif
{{-- @dd($product_details) --}}
|{{ $product_details->seller_rating }}
@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
{{-- @dd($product_details); --}} @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 {{-- @dd($product_details->description); --}}
@if ($product_details->description != '')

{{ labels('front_messages.description', 'Description') }}

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

{{ labels('front_messages.additional_information', 'Additional Information') }}

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

{{ labels('front_messages.reviews', 'Reviews') }}

@if (count($relative_products) >= 1)
@php $heading['title'] = labels('front_messages.related_products', 'Related Products'); $heading['short_description'] = labels('front_messages.products_related_to', 'Products Related to ') . $product_details->name; @endphp @php $store_settings = app(StoreService::class)->getStoreSettings(); @endphp
@foreach ($relative_products as $details)
@php $store_settings = app(StoreService::class)->getStoreSettings(); $component = getProductDisplayComponent($store_settings); @endphp
@endforeach
@endif {{-- @dd($product_details); --}}
@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 }}' />