@php $all_categories = $categories_list->where('featured',1); $parents = $all_categories->whereNull('parent_id')->pluck('id')->toArray(); @endphp @extends('ecommerce::frontend.layout.main2') @if($product->image!==null) @php $images = explode(',', $product->image); $product->image = $images[0]; @endphp @endif @section('title'){{ $product->meta_title ?? $product->name ?? 'Ochaka - Multipurpose eCommerce HTML Template' }}@endsection @section('description'){{ $product->meta_description ?? $product->name ?? 'Themesflat Ochaka - A modern and elegant Multipurpose eCommerce' }}@endsection @section('content') @include('ecommerce::frontend.partials.header')
{{ $product->name }}
@if(isset($images) && count($images) > 1) @foreach($images as $key => $image) @if($key > 0 && $image !== 'zummXD2dvAtI.png')
variant_option) data-size="{{ $product->variant_value[0] ? explode(',', $product->variant_value[0])[$key % count(explode(',', $product->variant_value[0]))] : '' }}" @endif @if($product->variant_option && isset($product->variant_value[1])) data-color="{{ explode(',', $product->variant_value[1])[$key % count(explode(',', $product->variant_value[1]))] }}" @endif>
{{ $product->name }}
@endif @endforeach @endif

{!! $product->name !!}

@for($i = 1; $i <= 5; $i++) @endfor
({{ $product->reviews_count ?? 0 }} review)
{{ $product->recent_orders_count ?? mt_rand(5, 20) }} people just added this product to their cart
@if(($product->promotion == 1) && (($product->last_date > date('Y-m-d')) || !isset($product->last_date))) {{ $currency->symbol ?? $currency->code }}{{ $product->promotion_price }} {{ $currency->symbol ?? $currency->code }}{{ $product->price }}

-{{ round(($product->price - $product->promotion_price) / $product->price * 100) }}%

@else {{ $currency->symbol ?? $currency->code }}{{ $product->price }} @endif
{{ mt_rand(10, 50) }}

People are viewing this right now

@if($product->variant_option) @foreach($product->variant_option as $key => $variant_option)
{{ $variant_option }} {{ explode(',', $product->variant_value[$key])[0] }}
@if($key == 0) Size Guide @endif
@php $val_list = explode(',',$product->variant_value[$key]); @endphp @if($key == 0) @foreach($val_list as $val) {{ $val }} @endforeach @else @foreach($val_list as $val)
{{ $val }}
@endforeach @endif
@endforeach @endif
@csrf
@if($product->in_stock == 1) @else @endif Compare
is_variant == 1) disabled @endif>BUY IT NOW

Estimate delivery times: 7-20 days (International), 2-4 days (United States).

Return within 30 days of purchase. Duties & taxes are non-refundable.

{{ $product->name }}
{{ $product->name }}
Size: M
Color: Blue
@if(($product->promotion == 1) && (($product->last_date > date('Y-m-d')) || !isset($product->last_date))) {{ $currency->symbol ?? $currency->code }}{{ $product->promotion_price }} @else {{ $currency->symbol ?? $currency->code }}{{ $product->price }} @endif
@csrf @if($product->variant_option)
Size:
@endif
Quantity:
@if($product->in_stock == 1) @else @endif
{!! $product->product_details !!}
@if(isset($related_products) && count($related_products) > 0)

You May Also Like

@foreach($related_products as $related_product)
@php $related_images = explode(',', $related_product->image); $related_main_image = ( empty($related_product->image) || $related_product->image === 'zummXD2dvAtI.png' || empty($related_images[0]) ) ? 'no-image.jpg' : $related_images[0]; @endphp {{ $related_product->name }} @if(isset($related_images[1]) && $related_images[1] !== 'zummXD2dvAtI.png') {{ $related_product->name }} @endif
@if($related_product->variant_option && isset($related_product->variant_value[0]))
    @php $related_val_list = explode(',',$related_product->variant_value[0]); @endphp @foreach($related_val_list as $val)
  • {{ $val }}
  • @endforeach
@endif
@if(($related_product->promotion == 1) && (($related_product->last_date > date('Y-m-d')) || !isset($related_product->last_date)))
  • Flash sale
@endif
{{ $related_product->name }}
@if(($related_product->promotion == 1) && (($related_product->last_date > date('Y-m-d')) || !isset($related_product->last_date))) {{ $currency->symbol ?? $currency->code }}{{ $related_product->price }} {{ $currency->symbol ?? $currency->code }}{{ $related_product->promotion_price }} @else {{ $currency->symbol ?? $currency->code }}{{ $related_product->price }} @endif
@endforeach
@endif
{{ $total_qty ?? 0 }}
@endsection @section('script') @endsection