{{-- Branches Search View - Will be rendered inside Theme::content() --}}

{{ trans('plugins/branches::branches.search_branches') }}

{{ trans('plugins/branches::branches.search_description') }}

@if($query || $countryId)

@if($query && $countryId) {{ trans('plugins/branches::branches.search_results_for_query_country', [ 'query' => $query, 'country' => $countries->find($countryId)->name ?? '', 'count' => $branches->total() ]) }} @elseif($query) {{ trans('plugins/branches::branches.search_results_for_query', [ 'query' => $query, 'count' => $branches->total() ]) }} @elseif($countryId) {{ trans('plugins/branches::branches.search_results_for_country', [ 'country' => $countries->find($countryId)->name ?? '', 'count' => $branches->total() ]) }} @endif

@endif
@if($branches->isNotEmpty())

{{ trans('plugins/branches::branches.search_results') }} {{ $branches->total() }}

@foreach($branches as $branch)
@if($branch->country->flag_image) {{ $branch->country->name }} @endif {{ $branch->country->name }} {{ strtoupper($branch->country->code) }}

{{ $branch->name }}

@if($branch->location)
{{ Str::limit($branch->location, 100) }}
@endif @if($branch->manager_name)
{{ $branch->manager_name }}
@endif @if($branch->phone)
{{ $branch->phone }}
@endif @if($branch->email)
{{ $branch->email }}
@endif
{{ trans('plugins/branches::branches.view_details') }} @if($branch->hasCoordinates()) @endif @if($branch->phone) @endif @if($branch->email) @endif
@endforeach
@if($branches->hasPages())
{{ $branches->appends(request()->query())->links() }}
@endif @else

{{ trans('plugins/branches::branches.no_branches_found') }}

@if($query || $countryId)

{{ trans('plugins/branches::branches.no_results_for_search') }}

@else

{{ trans('plugins/branches::branches.start_search_description') }}

{{ trans('plugins/branches::branches.view_all_branches') }} @endif
@endif
@if(!$query && !$countryId)
{{ trans('plugins/branches::branches.search_tips') }}
  • {{ trans('plugins/branches::branches.tip_search_by_name') }}
  • {{ trans('plugins/branches::branches.tip_search_by_location') }}
  • {{ trans('plugins/branches::branches.tip_search_by_manager') }}
  • {{ trans('plugins/branches::branches.tip_filter_by_country') }}
  • {{ trans('plugins/branches::branches.tip_combine_filters') }}
  • {{ trans('plugins/branches::branches.tip_use_keywords') }}
@endif
{{-- End of Branches Search View --}}