-
@php
$popularproductsliders = PopularProductSlider::orderBy('serial', 'asc')->skip(0)->take(3)->get();
@endphp
@if(!is_null($popularproductsliders))
@foreach($popularproductsliders as $popularproductslider)
@php
$image = PopularProductSliderImage::where('popular_product_slider_id', $popularproductslider->id)->first();
@endphp
@if(!is_null($image))
-
{{$popularproductslider->title}}Shop now
@endif
@endforeach
@endif
Week Deals limited, Just now
50%
Hurry Up! Offer ends in:
Categories
{{$category->name}}
-
@foreach ($subcategories as $subcategory)
- {{$subcategory->name}} @endforeach
-
@php
$categories_products = Product::orWhere('category_id', $category->id)->orWhere(function($q) use($subcategories){
foreach($subcategories as $subcategory){
$q->orWhere('category_id', $subcategory->id);
}
})->orderBy('id','desc')->skip(0)->take(8)->get();
$i = 1;
@endphp
@foreach($categories_products as $product)
-
@if(Config::get('app.locale') == 'bd') @if(!is_null($product->title_bd)) {{ $product->title_bd }} @else {{ $product->title }} @endif @elseif(Config::get('app.locale') == 'en') {{ $product->title }} @endif
@php $attributes = $product->attribute_options; if (!is_null($attributes)) { # code... $unserialize_attributes = unserialize($attributes); $all_keys = array_keys($unserialize_attributes); } @endphp
@endforeach
@endif