Update search.blade.php

Use TOTAL instead of COUNT
This commit is contained in:
Alexey 2019-07-14 17:27:34 +04:00 committed by GitHub
parent df0b4cbf95
commit 5856d00e4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -17,13 +17,13 @@
<span>{{ __('shop::app.search.no-results') }}</span>
</div>
@else
@if ($results->count() == 1)
@if ($results->total() == 1)
<div class="search-result-status mb-20">
<span><b>{{ $results->count() }} </b>{{ __('shop::app.search.found-result') }}</span>
<span><b>{{ $results->total() }} </b>{{ __('shop::app.search.found-result') }}</span>
</div>
@else
<div class="search-result-status mb-20">
<span><b>{{ $results->count() }} </b>{{ __('shop::app.search.found-results') }}</span>
<span><b>{{ $results->total() }} </b>{{ __('shop::app.search.found-results') }}</span>
</div>
@endif