@php use App\Models\Category; use App\Models\Brand; use App\Services\TranslationService; use App\Services\MediaService; use App\Services\CurrencyService; @endphp
Loading...
@if (count($product) >= 1)
@php $product[0] = (object)$product[0]; @endphp
@php $main_image = app(MediaService::class)->dynamic_image($product[0]->image, 800); @endphp
{{ $product[0]->name }}
@if (count($product[0]->other_images) >= 1) @foreach ($product[0]->other_images as $key => $images) @php $images = app(MediaService::class)->dynamic_image($images, 800); @endphp
{{ $product[0]->name }}
@endforeach @endif
@php $main_image = app(MediaService::class)->dynamic_image($product[0]->image, 200); @endphp {{ $product[0]->name }}
@if (count($product[0]->other_images) >= 1) @foreach ($product[0]->other_images as $key => $images) @php $images = app(MediaService::class)->dynamic_image($images, 200); @endphp
{{ $product[0]->name }}
@endforeach @endif
{{-- @dd($product[0]->slug) --}}
{{ labels('front_messages.view_more_details', 'View More Details') }}
@if (count($product[0]->tags) >= 1)
@foreach ($product[0]->tags as $tag) {!! $tag !!} @endforeach
@endif

{{ $product[0]->name }}

{{ $product[0]->no_of_ratings }} {{ labels('front_messages.reviews', 'Reviews') }}
@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
{{ $item['name'] }}
{{ $item['name'] }}
@endif
@foreach ($product[0]->attributes as $attributes) @php $attribute_ids = explode(',', $attributes['ids']); $attribute_values = explode(',', $attributes['value']); @endphp
    @foreach ($attribute_values as $key => $val)
  • {{ $val }}
  • @endforeach
@endforeach
@if ($this->product_type != 'combo-product') @foreach ($product[0]->variants as $variant) @endforeach @endif
total_allowed_quantity }}' step='{{ $product[0]->quantity_step_size }}' min='{{ $product[0]->minimum_order_quantity }}' />
@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
Share :
@endif