@extends('ecommerce::layout.layout') @section('title', $currentCategory ? $currentCategory->title : __('ecommerce::ecommerce.ecommerce.categories')) @section('content')
@foreach($subCategories as $sub) id ? 'checked' : '' }}> @endforeach
@if($currentCategory)

{{ $currentCategory->title }}

@if($currentCategory->description)

{{ $currentCategory->description }}

@endif @elseif(request()->filled('q'))

@lang('ecommerce::ecommerce.search_results_for'): "{{ request('q') }}"

@else

@lang('ecommerce::ecommerce.shop_all')

@endif
@if($subCategories->count() > 0) @endif
{{--
Showing {{ $products->firstItem() ?? 0 }}-{{ $products->lastItem() ?? 0 }} of {{ $products->total() }}
--}}
@if($products->count() > 0) @include('ecommerce::pages.partials.product-grid', compact('products')) @else

@lang('ecommerce::ecommerce.products.no_results')

@lang('ecommerce::ecommerce.products.Try checking your spelling or use different keywords')

@endif
{{--
{{ $products->appends(request()->input())->links('pagination::bootstrap-4') }}
--}} @if($products->hasPages())
{{ $products?->links('vendor.pagination.custom') }}
@endif
@endsection