Admin Panel
Popular Searches
All Popular Searches
Add New
@if(session('success'))
{{ session('success') }}
@endif
@php
$rows = $searches ?? $popularSearches ?? collect();
$serialStart = method_exists($rows, 'firstItem')
? ($rows->firstItem() ?? 1)
: 1;
@endphp
| S.NO. |
Search Text |
URL |
Sort Order |
Status |
Actions |
@forelse($rows as $search)
| {{ $serialStart + $loop->index }} |
{{ $search->title }}
|
{{ $search->url ?? $search->link ?? '-' }}
|
{{ $search->sort_order }} |
@if($search->status)
Active
@else
Inactive
@endif
|
Edit
|
@empty
|
No popular searches found.
|
@endforelse
@if(method_exists($rows, 'links'))
{{ $rows->links('pagination::bootstrap-5') }}
@endif
@endsection