@extends('web.home.layout.master') @section('content')
@if ($products->count() > 0) @foreach ($products as $allproducts)
@if($allproducts->cutted_price !=null) @php $cuttedprice_featured = $allproducts->cutted_price; $productprice_featured = $allproducts->product_price; $percentage_featured = (($cuttedprice_featured - $productprice_featured) / $cuttedprice_featured) * 100; @endphp {{ floor($percentage_featured) }}% @else @endif @if(Auth::check()) @php $user=Auth::user(); $productexists=App\Models\Wishlist::where('user_id',$user->id)->where('product_id',$allproducts->id)->exists(); @endphp @if($productexists) @else @endif @else @endif
@php $imageArray = explode(',', $allproducts->product_image); $firstImage = $imageArray[0]; @endphp {{-- @if ($allproducts->cutted_price != null)
@endif --}}
{{ $allproducts->product_name }}
LKR {{ number_format($allproducts->product_price, 2) }} @if ($allproducts->cutted_price != null) LKR {{ number_format($allproducts->cutted_price, 2) }} @endif
4.8
@if($allproducts->order > 0) {{ $allproducts->order }} sold @else 0 sold @endif
@endforeach {!! $products->withQueryString()->links('pagination::bootstrap-5') !!} @else

Products Not Available!

We’re sorry, but the products you are looking for are currently out of stock. Please check back later or explore our other offerings.

Go to Homepage
@endif
@endsection