@extends('agency.layouts.app') @section('title', $term !== '' ? "\"{$term}\" araması" : 'Arama') @section('page_title', 'Global Arama') @push('styles') @endpush @section('content')
{{-- Arama çubuğu --}}
@if($module) @endif
@if($term !== '' && mb_strlen($term) >= 2) {{-- Modül filtreleri --}}
Tümü @if(!$module) {{ $total }} @endif @foreach($modules as $key => $meta) @php $g = collect($groups)->firstWhere('key', $key); @endphp {{ $meta['label'] }} @if($g) {{ $g['count'] }} @endif @endforeach
{{-- Sonuç grupları --}} @forelse($groups as $gi => $g)
{{ $g['label'] }} {{ $g['count'] }} sonuç @if(!$module && $g['count'] > count($g['items'])) +{{ $g['count'] - count($g['items']) }} sonuç daha → @endif
@foreach($g['items'] as $it) @endforeach
@empty
"{{ $term }}" için sonuç bulunamadı
Farklı bir kelime deneyin — Türkçe karakter ve büyük/küçük harf fark etmez.
@endforelse @else
Her şeyi tek yerden arayın
Müşteri, tur, tur tarihi, satış, ürün, tedarikçi, kaynak, kullanıcı ve sistem sayfaları içinde arayın.
En az 2 karakter yazın; Türkçe karakter ve büyük/küçük harf fark etmez.
@endif
@endsection @push('scripts') @endpush