back-icon {{__("detail.go back")}}
{{__('words.Post Your Ad')}}

{{__('detail.Selected Category')}}

{{__("category.$parent->title")}} >

{{__("words.Change")}}

icon {{__("category.$parent->title")}}
    @forelse ($categories as $category) {{-- @if ( ! in_array($parent->slug,$parent->preventFromEdit()) || ($parent->slug == 'properties') || ($parent->slug == 'cars_boats_caravans'))
  • @else --}} @php if(!empty($lastSlug) && ($lastSlug != 'sale' )&&( $lastSlug != 'buy')){ $lastCategory = \App\Models\Category::where('slug',$lastSlug)->get(); $lastId = ($category->slug == 'sale') ? $lastCategory->first()->id : $lastCategory->last()->id; } @endphp
  • @php $id = !empty($category->getSubCategory()->first()) ? $category->getSubCategory()->first()->id : $category->id; $finalCategory = \App\Models\Category::find($id); $categorySlug = $finalCategory->slug; // as per client's requirement we have to redirect on next subCategory in case of office & schools $nextCategory = \App\Models\Category::where('id', '>', $id) ->where('parent_id', $finalCategory->parent_id) ->first(); if($categorySlug=="fashion") { $nextCategoryId = $nextCategory->id; $nextCategory = \App\Models\Category::where('id', '>', $nextCategory->id) ->where('parent_id', $finalCategory->parent_id) ->first(); } @endphp @if($categorySlug =="office_school" || $categorySlug =="adopt_pets" || $categorySlug =="fashion") @else @endif @if($category->slug == 'sale') @else @endif

    {{__("category.$category->title")}}

  • {{-- @endif --}} @empty {{__("words.No data found")}} @endforelse