@extends('layouts.app') @section('title', $query ? "Tìm kiếm: {$query} - Truyện Hay" : 'Tìm kiếm - Truyện Hay') @section('description', $query ? "Kết quả tìm kiếm cho '{$query}' trên Truyện Hay" : 'Tìm kiếm truyện, tác giả, thể loại trên Truyện Hay') @section('content') {{-- Hero Search Section --}}

search Tìm Kiếm

{{-- Search Form --}}
{{-- Autocomplete Results --}}
@if($query && mb_strlen($query) >= 2) {{-- Filter Tabs --}}
Tất cả ({{ $total }}) Truyện ({{ $comics->total() ?? 0 }}) Tác giả ({{ $authors->count() }}) Thể loại ({{ $categories->count() }}) @if($type === 'comics') {{-- Sort Options --}}
@endif
{{-- Comics Results --}} @if(($type === 'all' || $type === 'comics') && $comics->count() > 0)
@if($type === 'all')

book Truyện

Xem tất cả →
@endif
@foreach($comics as $comic) @endforeach
@if($type === 'comics' && $comics->hasPages())
{{ $comics->links('pagination::tailwind') }}
@endif
@endif {{-- Authors Results --}} @if(($type === 'all' || $type === 'authors') && $authors->count() > 0)
@if($type === 'all')

person Tác Giả

Xem tất cả →
@endif @if($type === 'authors' && method_exists($authors, 'hasPages') && $authors->hasPages())
{{ $authors->links('pagination::tailwind') }}
@endif
@endif {{-- Categories Results --}} @if(($type === 'all' || $type === 'categories') && $categories->count() > 0)
@if($type === 'all')

category Thể Loại

Xem tất cả →
@endif
@foreach($categories as $category) {{ $category->icon ?? 'label' }} {{ $category->name }} @endforeach
@if($type === 'categories' && method_exists($categories, 'hasPages') && $categories->hasPages())
{{ $categories->links('pagination::tailwind') }}
@endif
@endif {{-- No Results --}} @if($total == 0)
search_off

Không tìm thấy kết quả

Không có kết quả nào cho "{{ $query }}"

Gợi ý: Kiểm tra lại chính tả hoặc thử từ khóa khác

@endif @elseif($query && mb_strlen($query) < 2)
keyboard

Vui lòng nhập ít nhất 2 ký tự để tìm kiếm

@else {{-- Search Suggestions when no query --}}

Tìm kiếm phổ biến

@endif
@push('scripts') @endpush @endsection