@inject ('toolbarHelper', 'Webkul\Product\Helpers\Toolbar') @extends('shop::layouts.master') @section('page_title') {{ __('shop::app.search.page-title') }} @endsection @section('content-wrapper')
@if ($results && $results->count())
@include ('shop::products.list.toolbar')
@endif @if (! $results)

{{ __('shop::app.search.no-results') }}

@else @if ($results->isEmpty())

{{ __('shop::app.products.whoops') }}

{{ __('shop::app.search.no-results') }} @else @if ($results->total() == 1)

{{ $results->total() }} {{ __('shop::app.search.found-result') }}

@else

{{ $results->total() }} {{ __('shop::app.search.found-results') }}

@endif @foreach ($results as $productFlat) @if ($toolbarHelper->getCurrentMode() == 'grid') @include('shop::products.list.card', ['product' => $productFlat->product]) @else @include('shop::products.list.card', [ 'list' => true, 'product' => $productFlat->product ]) @endif @endforeach @include('ui::datagrid.pagination') @endif @endif
@endsection