@if (count($product[0]->tags) >= 1)
@if ($product[0]->type == 'combo-product')
{{ currentCurrencyPrice($product[0]->special_price, true) }}
@else
{{ $product[0]->type != 'variable_product' ? currentCurrencyPrice($product[0]->variants[0]->special_price, true) : currentCurrencyPrice($product[0]->min_max_price['max_price'], true) . '-' . currentCurrencyPrice($product[0]->min_max_price['special_min_price'], true) }}
@endif
@php
if ($this->product_type != 'combo-product') {
$category = fetchDetails(
'categories',
['id' => $product[0]->category_id],
'slug',
);
}
@endphp
@if ($product[0]->product_type == 'digital_product')
{{ labels('front_messages.digital_product', 'Digital Product') }}
@endif
@if ($this->product_type != 'combo-product')
@if (!empty($product[0]->brand_name))
{!! $product[0]->brand_name !!}
@endif
{!! $product[0]->category_name !!}
@endif
{{ $product[0]->short_description }}
@if ($this->product_type == 'combo-product')
{{ labels('front_messages.products_included_in_combo', 'Products Included In Combo') }}
@foreach ($product[0]->product_details as $item)
@php
$item_image = dynamic_image($item['image'], 200);
@endphp
|
|
|
@endforeach
@endif
@foreach ($product[0]->attributes as $attributes)
@php
$attribute_ids = explode(',', $attributes['ids']);
$attribute_values = explode(',', $attributes['value']);
@endphp
@endforeach
@if ($this->product_type != 'combo-product')
@foreach ($product[0]->variants as $variant)
@endforeach
@endif
@php
if ($this->product_type != 'combo-product') {
if (count($product[0]->variants) <= 1) {
$variant_id = $product[0]->variants[0]->id;
} else {
$variant_id = '';
}
} else {
$variant_id = $product[0]->id;
}
@endphp