@extends('layouts.app') @section('content')

Showing {{($entities->currentpage()-1)*$entities->perpage()+1}} – {{($entities->currentpage()-1) * $entities->perpage() + $entities->count()}} of {{$totalCount}} results

@foreach($entities as $entity)
{{$entity->name}} {{$entity->name}}
@if($entity->inStock()) Add to Cart @else Out of Stock @endif @if($entity->hasDiscount()) {{$entity->discountPercentage()}} @elseif($entity->isHot()) Hot @elseif($entity->isNew()) New @endif

{{$entity->name}}

@if($entity->hasDiscount()) {{$entity->displayprice}} {{$entity->discountedPrice()}} @else {{$entity->displayprice}} @endif
{{$entity->kg}} Kilogram

{{$entity->description}}

@if($entity->inStock()) Add to Cart @else Out of Stock @endif
@endforeach
{{$entities->appends(request()->all())->links('vendor.pagination.default')}}
@include('includes.productfooter') @endsection