@if (count($product[0]->tags) >= 1)
@if ($product[0]->type == 'combo-product')
{{ app(CurrencyService::class)->currentCurrencyPrice($product[0]->special_price > 0 ? $product[0]->special_price : $product[0]->price, true) }}
@else
{{ $product[0]->type != 'variable_product'
? ($product[0]->variants[0]['special_price'] == 0 || $product[0]->variants[0]['special_price'] == null
? app(CurrencyService::class)->currentCurrencyPrice($product[0]->variants[0]['price'], true)
: app(CurrencyService::class)->currentCurrencyPrice($product[0]->variants[0]['special_price'], true))
: ($product[0]->min_max_price['special_min_price'] == 0 || $product[0]->min_max_price['special_min_price'] == null
? app(CurrencyService::class)->currentCurrencyPrice($product[0]->min_max_price['max_price'], true)
: app(CurrencyService::class)->currentCurrencyPrice($product[0]->min_max_price['special_min_price'], true) .
'-' .
app(CurrencyService::class)->currentCurrencyPrice($product[0]->min_max_price['special_max_price'], true)) }}
@endif
@php
if ($this->product_type != 'combo-product') {
$category = fetchDetails(
\App\Models\Category::class,
['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(app(TranslationService::class)->getDynamicTranslation(Brand::class, 'name', $product[0]->brand, $language_code)))
{!! app(TranslationService::class)->getDynamicTranslation(Brand::class, 'name', $product[0]->brand, $language_code) !!}
@endif
{!! app(TranslationService::class)->getDynamicTranslation(Category::class, 'name', $product[0]->category_id, $language_code) !!}
@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 = app(MediaService::class)->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
{{ $attributes['name'] }}:
@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
{{ labels('front_messages.add_to_cart', 'Add to cart') }}