@extends('layouts.app') @section('title') @if( ! empty($title)) {{ $title }} | @endif @parent @endsection @section('content')
@if($query_category) @php $searchable_top_category = $query_category; if ($query_category->category_id){ $searchable_top_category = \App\Category::find($query_category->category_id); } @endphp @if($searchable_top_category->sub_categories->count())
@if($query_category->category_id)

@lang('app.also_search_in_similar_categories')

@else

@lang('app.also_search_in_sub_categories')

@endif
@foreach($searchable_top_category->sub_categories as $sub_c)