From 8fe7050a86575f0a8d51e4b2228f62903b1966f0 Mon Sep 17 00:00:00 2001 From: innhousepl <114243157+innhousepl@users.noreply.github.com> Date: Tue, 4 Jul 2023 15:52:33 +0200 Subject: [PATCH] fixed numbering search results --- src/Views/binshopsblog/search.blade.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Views/binshopsblog/search.blade.php b/src/Views/binshopsblog/search.blade.php index 6bb266e..29cb5d1 100755 --- a/src/Views/binshopsblog/search.blade.php +++ b/src/Views/binshopsblog/search.blade.php @@ -7,13 +7,11 @@

Search Results for {{$query}}

- @php $search_count = 0;@endphp @forelse($search_results as $result) @if(isset($result->indexable)) - @php $search_count += $search_count + 1; @endphp indexable; ?> @if($post && is_a($post,\BinshopsBlog\Models\BinshopsPostTranslation::class)) -

Search result #{{$search_count}}

+

Search result #{{$loop->iteration}}

@include("binshopsblog::partials.index_loop") @else