@foreach ($product_details->attributes as $attributes)
@php
$attribute_ids = explode(',', $attributes['ids']);
$attribute_values = explode(',', $attributes['value']);
@endphp
{{ $attributes['name'] }}
@endforeach
{{-- @dd($product_details->attributes); --}}
@foreach ($product_details->variants as $variant)
@endforeach
@php
if (count($product_details->variants) <= 1) {
$variant_id = $product_details->variants[0]['id'];
$variant_price = $product_details->variants[0]['special_price'];
} else {
$variant_id = '';
$variant_price = '';
}
@endphp
{{-- {{ dd($product_details)}} --}}
brand, $language_code) }}'
data-image='{{ $product_details->image }}' data-product-type='regular'
data-max='{{ $product_details->total_allowed_quantity }}'
data-step='{{ $product_details->quantity_step_size }}'
data-min='{{ $product_details->minimum_order_quantity }}'
data-stock-type='{{ $product_details->stock_type }}'
data-store-id='{{ $product_details->store_id }}'
data-variant-price="{{ $variant_price }}">
{{ labels('front_messages.add_to_cart', 'Add to cart') }}
brand, $language_code) }}'
data-image='{{ $product_details->image }}' data-product-type='regular'
data-max='{{ $product_details->total_allowed_quantity }}'
data-step='{{ $product_details->quantity_step_size }}'
data-min='{{ $product_details->minimum_order_quantity }}'
data-store-id='{{ $product_details->store_id }}'
data-variant-price="{{ $variant_price }}">
{{ labels('front_messages.buy_it_now', 'Buy it now') }}
{{ labels('front_messages.remove_from_wishlist', 'Remove from Wishlist') }}
{{ labels('front_messages.add_to_wishlist', 'Add to Wishlist') }}
{{ labels('front_messages.add_to_compare', 'Add to Compare') }}
@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
@endif
@if ($product_details->product_type == 'simple_product')
@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
@else
@if ($product_details->variants[0]['stock_type'] != '')
{{ labels('front_messages.availability', 'Availability') }}:
@if ($product_details->variants[0]['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')
{{ labels('front_messages.city', 'City') }}
*
@else
{{ labels('front_messages.pincode', 'Pincode') }}
*
@endif
{{ labels('front_messages.check', 'Check') }}
@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