All Category Products

  • All
  • @if(isset($categories)) @foreach ($categories as $category)
  • {{ $category->name}}
  • @endforeach @endif
{{--
banner
--}}
@php $userDetails = Auth::user(); @endphp @if(isset($productss)) @foreach ($productss as $item)
{{-- Top --}} @php if ($userDetails && $userDetails->referral_code) { $originalPrice = $item->wholesale_price; $discountedPrice = $item->wholesale_price - $item->dis_price_wholesale; } else { $originalPrice = $item->retail_price; $discountedPrice = $item->retail_price - $item->dis_price_retail; } $percentageDiscount = (($originalPrice - $discountedPrice) / $originalPrice) * 100; @endphp @if ($item->promotions == 1 && $item->start_date <= \Carbon\Carbon::now()->startOfDay() && $item->end_date >= \Carbon\Carbon::now()->endOfDay()) {{$percentageDiscount}}% @endif Product image
add to wishlist
@csrf
{{-- quick view --}}
{{ $item->categories->name}}
{{ $item->brands->name}}

{{ $item->bn_name}}

{{-- Tk. {{$userDetails && $userDetails->referral_code ? $item->wholesale_price : $item->retail_price}}.00 --}} @if ($item->promotions == 1 && $item->start_date <= \Carbon\Carbon::now()->startOfDay() && $item->end_date >= \Carbon\Carbon::now()->endOfDay()) Tk. {{$userDetails && $userDetails->referral_code ? $item->wholesale_price - $item->dis_price_wholesale : $item->retail_price - $item->dis_price_retail}} .00 @else Tk. {{$userDetails && $userDetails->referral_code ? $item->wholesale_price : $item->retail_price}}.00 @endif @if ($item->promotions == 1 && $item->start_date <= \Carbon\Carbon::now()->startOfDay() && $item->end_date >= \Carbon\Carbon::now()->endOfDay()) পূর্বের দাম {{$userDetails && $userDetails->referral_code ? $item->wholesale_price : $item->retail_price}} @else @endif
@php $rating = 0; @endphp @if (isset($item->reviews) && count($item->reviews) > 0) @php $rating = $item->reviews[0]->rating; $ratingCount = $rating; $ratingAvg = $item->reviews()->avg('rating'); // echo $ratingCount; @endphp
@endif ({{$rating}} reviews )
{{--
Color name Color name Color name
--}}
@endforeach @endif
@if(isset($productss)) @foreach ($categories as $category)
@foreach ($productss as $product) @if($product->category_id == $category->id)
{{-- Top --}} @php if ($userDetails && $userDetails->referral_code) { $originalPrice = $product->wholesale_price; $discountedPrice = $product->wholesale_price - $product->dis_price_wholesale; } else { $originalPrice = $product->retail_price; $discountedPrice = $product->retail_price - $product->dis_price_retail; } $percentageDiscount = (($originalPrice - $discountedPrice) / $originalPrice) * 100; @endphp @if ($product->promotions == 1 && $product->start_date <= \Carbon\Carbon::now()->startOfDay() && $product->end_date >= \Carbon\Carbon::now()->endOfDay()) {{$percentageDiscount}}% @endif Product image
add to wishlist
@csrf
{{-- quick view --}}
{{ $product->categories->name}}
{{ $product->brands->name}}

{{ $product->bn_name}}

{{-- Tk. {{ $userDetails && $userDetails->referral_code ? $item->wholesale_price : $item->retail_price}}.00 --}} @if ($product->promotions == 1 && $product->start_date <= \Carbon\Carbon::now()->startOfDay() && $product->end_date >= \Carbon\Carbon::now()->endOfDay()) Tk. {{$userDetails && $userDetails->referral_code ? $product->wholesale_price - $product->dis_price_wholesale : $product->retail_price - $product->dis_price_retail}} .00 @else Tk. {{$userDetails && $userDetails->referral_code ? $product->wholesale_price : $product->retail_price}}.00 @endif @if ($product->promotions == 1 && $product->start_date <= \Carbon\Carbon::now()->startOfDay() && $product->end_date >= \Carbon\Carbon::now()->endOfDay()) পূর্বের দাম {{$userDetails && $userDetails->referral_code ? $product->wholesale_price : $product->retail_price}} @else @endif
@php $rating = 0; @endphp @if (isset($product->reviews) && count($product->reviews) > 0) @php $rating = $product->reviews[0]->rating; $ratingCount = $rating; $ratingAvg = $product->reviews()->avg('rating'); // echo $ratingCount; @endphp
@endif ({{$rating}} reviews )
@endif @endforeach
@endforeach @endif