@php use App\Category; use App\Review; use App\PopularProductSlider; use App\PopularProductSliderImage; use App\TestimonialLeft; use App\Testimonial; use App\Banner; use App\SectionSwitch; use App\BanglaConverter; @endphp @extends('frontend.layouts.home') @section('content')
@if(SectionSwitch::find(7)->action == 1) @endif @if(SectionSwitch::find(5)->action == 1)

Shop By Category

Browse in all our categories

@endif @if(SectionSwitch::find(6)->action == 1)
@php $popularproductsliders = PopularProductSlider::orderBy('serial', 'asc')->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)) @endif @endforeach @endif
@endif @if(SectionSwitch::find(1)->action == 1)

Popular Products

Check all our popular products

@if(!is_null($feature_products)) @foreach($feature_products as $product)
@php $i = 1; @endphp @if(!is_null($product->images)) @foreach($product->images as $image) @if($i>0) @endif @php $i--; @endphp @endforeach @endif
@if($product->offer_price > 0) @php $off_amount = $product->price-$product->offer_price; $off_parcent = intval(($off_amount/$product->price)*100); @endphp @if(Config::get('app.locale') == 'bd') @php echo BanglaConverter::en2bn($off_parcent); @endphp @elseif(Config::get('app.locale') == 'en') {{$off_parcent}} @endif % OFF@endif
@endforeach @endif
@endif
@endsection