@extends('layouts.auth') @php use Illuminate\Support\Str; function custom_asset($path) { return url('/' . $path); } @endphp
@section('keywords') {{ __('words.Buy and sell product for') }} @empty(!$categoryModel) @foreach ($categoryModel->subcategory()->get() as $keycategory) {{ $keycategory->title }}, @endforeach @php $fistCategory = $categoryModel->subcategory()->with('subSubCategory')->first(); @endphp @empty(!$fistCategory) @foreach ($fistCategory->subSubCategory as $keyscategory) {{ $keyscategory->title }}, @endforeach @endempty @endempty @endsection @section('title') {{ __('words.for buy and sell') }} | {{ config('app.name') }} @endsection @section('description') {{ __('words.Ambayo is the safest digital property marketplace. If you want to buy or sell a product for') }} @endsection
@section('content') @php if ($mainCategory == false) { try{ $mainCategory = $categoryModel->getTopRootParentCategory($categoryModel); } catch(\Exception $e){ return response()->json($e); } } @endphp
@include('category.filter')

{{ $count }} {{ !empty($categoryModel->title) ? __("category.$categoryModel->title") : '' }} {{ __('words.Ads') }}

@if (!empty(request()->get('search')))
@foreach ($advertisments as $advertisment) @php $name = []; $category = \App\Models\Category::find(getFirstCategoryByAdId($advertisment->id)); @endphp @if (!in_array($category->title, $name))
@endif @php $name[] = $category->title; @endphp @endforeach
@endif
{{--
--}}

@if(isset($advertisments) && count($advertisments) > 0) @if (isset($advertisments) && $advertisments->count() >= '36')
Go To Page
@endif @endif
@push('page_script') {{-- --}} {{-- --}} @endpush @endsection