@extends('shop::layouts.master') @section('page_title') {{ __('shop::app.search.page-title') }} @endsection @section('content-wrapper') @if (request('image-search')) @endif @if (! $results) {{ __('shop::app.search.no-results') }} @endif @if ($results)
@if ($results->isEmpty())

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

{{ __('shop::app.search.no-results') }}
@else
{{ $results->total() }} {{ ($results->total() == 1) ? __('shop::app.search.found-result') : __('shop::app.search.found-results') }}
@foreach ($results as $productFlat) @include('shop::products.list.card', ['product' => $productFlat->product]) @endforeach
@include('ui::datagrid.pagination') @endif
@endif @endsection @push('scripts') @endpush