@extends('site.master') @section('title','Home') @section('content')
@foreach($sliders as $slider)
{{--

{{ $slider->title }}

--}} get it now
@endforeach
@if($bestSellerProducts->count() >0)

BEST DEALS

Show all
@foreach($bestSellerProducts as $bestSellerProduct)
@if(file_exists( public_path().'/uploads/product/'.$bestSellerProduct->thumb_image ) && !empty($bestSellerProduct->thumb_image)) Product Image @else Product Image @endif @php $totalBestSellerQty = 0; if(isset($bestSellerProduct->stock_qty)) { foreach($bestSellerProduct->stock_qty as $qty) { $totalBestSellerQty += $qty->quantity; } } @endphp
{{-- --}}
@if($totalBestSellerQty > 0) ADD TO CART @endif
৳  @if(!empty($bestSellerProduct->retail_price_after_discount)) {{ $bestSellerProduct->retail_price }} {{ $bestSellerProduct->retail_price_after_discount }} @else {{ $bestSellerProduct->retail_price }} @endif
@php $avgProductRating=\App\SiteCommonHelper::getProductAvgRating($bestSellerProduct->id); $rating=\App\SiteCommonHelper::getProductReviewCount(floor($avgProductRating * 2) / 2); @endphp {!! $rating!!}
@endforeach
@endif @if($newArrivalProducts->count() >0)

NEW ARRIVAL

Show all
@foreach($newArrivalProducts as $newArrivalProduct)
@if(file_exists( public_path().'/uploads/product/'.$newArrivalProduct->thumb_image ) && !empty($newArrivalProduct->thumb_image)) Product Image @else Product Image @endif
{{-- --}}
@php $totalNewArrivalQty = 0; if(isset($newArrivalProduct->stock_qty)) { foreach($newArrivalProduct->stock_qty as $qty) { $totalNewArrivalQty += $qty->quantity; } } @endphp @if($totalNewArrivalQty >0) ADD TO CART @endif
৳  @if(!empty($newArrivalProduct->retail_price_after_discount)) {{ $newArrivalProduct->retail_price }} {{ $newArrivalProduct->retail_price_after_discount }} @else {{ $newArrivalProduct->retail_price }} @endif
@php $avgProductRating=\App\SiteCommonHelper::getProductAvgRating($newArrivalProduct->id); $rating=\App\SiteCommonHelper::getProductReviewCount(floor($avgProductRating * 2) / 2); @endphp {!! $rating!!}
@endforeach
@endif @if($smartPhoneProducts->count() >0)

SMART PHONE

Show all
@foreach($smartPhoneProducts as $smartPhoneProduct)
@if(file_exists( public_path().'/uploads/product/'.$smartPhoneProduct->thumb_image ) && !empty($smartPhoneProduct->thumb_image)) Product Image @else Product Image @endif
{{-- --}}
@php $totalSmartPhoneProductQty = 0; if(isset($smartPhoneProduct->stock_qty)) { foreach($smartPhoneProduct->stock_qty as $qty) { $totalSmartPhoneProductQty += $qty->quantity; } } @endphp @if($totalSmartPhoneProductQty >0) ADD TO CART @endif
৳  @if(!empty($smartPhoneProduct->retail_price_after_discount)) {{ $smartPhoneProduct->retail_price }} {{ $smartPhoneProduct->retail_price_after_discount }} @else {{ $smartPhoneProduct->retail_price }} @endif
@php $avgProductRating=\App\SiteCommonHelper::getProductAvgRating($smartPhoneProduct->id); $rating=\App\SiteCommonHelper::getProductReviewCount(floor($avgProductRating * 2) / 2); @endphp {!! $rating!!}
@endforeach
@endif @if($audioProducts->count() >0)

AUDIO

Show all
@foreach($audioProducts as $audioProducts)
৳  @if(!empty($audioProducts->retail_price_after_discount)) {{ $audioProducts->retail_price }} {{ $audioProducts->retail_price_after_discount }} @else {{ $audioProducts->retail_price }} @endif
@php $avgProductRating=\App\SiteCommonHelper::getProductAvgRating($audioProducts->id); $rating=\App\SiteCommonHelper::getProductReviewCount(floor($avgProductRating * 2) / 2); @endphp {!! $rating!!}
@endforeach
@endif @if($featuredProducts->count() >0)

FEATURED ITEMS

Show all
@foreach($featuredProducts as $featuredProduct)
৳  @if(!empty($featuredProduct->retail_price_after_discount)) {{ $featuredProduct->retail_price }} {{ $featuredProduct->retail_price_after_discount }} @else {{ $featuredProduct->retail_price }} @endif
@php $avgProductRating=\App\SiteCommonHelper::getProductAvgRating($featuredProduct->id); $rating=\App\SiteCommonHelper::getProductReviewCount(floor($avgProductRating * 2) / 2); @endphp {!! $rating!!}
@endforeach
@endif @if($ecomBrands->count() > 0)

SHOP BY BRAND

Show all
@foreach($ecomBrands as $ecomBrand)
@if(file_exists( public_path().'/uploads/brand/'.$ecomBrand->image ) && !empty($ecomBrand->image))  {{ $ecomBrand->title }} @endif
@endforeach
@endif @stop @section('page_scripts') @endsection