@extends('web.home.layout.master') @section('content')
@if ($categorybanner != null)

{{ $categorybanner->title }}

@else
@endif
{{-- @if ($products->count() > 0) --}} @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->qty <= 0)
Out of Stock
@else @endif
{{ $allproducts->product_name }}
LKR {{ number_format($allproducts->product_price, 2) }} @if ($allproducts->cutted_price != null) LKR {{ number_format($allproducts->cutted_price, 2) }} @endif
or 3 X LKR {{ number_format($allproducts->product_price / 3, 2) }} with Koko
or 3 X LKR {{ number_format($allproducts->product_price / 3, 2) }} with Mintpay
4.8
@if ($allproducts->order > 0) {{ $allproducts->order + 20 }} sold @else 20 sold @endif
@endforeach {!! $products->withQueryString()->links('pagination::bootstrap-4', ['class' => 'pagination flex-wrap justify-content-center']) !!} @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 {{-- @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