@php $categories = fetchCategories(); @endphp @if (!request()->is('terms-and-condition') && !request()->is('aboutus*') && !request()->is('privacy-policy') && !request()->is('how-it-works-app*')) @include('loader.loader') @include('layouts.partials.topheader') {{-- action="{{ route('category.list', ['id' => '0']) }}"> --}} {{-- --}} {{ __('words.Search') }} {{-- @if (!auth()->user()) {{__('words.Post Ads')}} @endif --}} {{ __('words.Post Ads') }} {{-- @if (auth()->user()) {{__('words.Post Ads')}} @endif --}} dfgd Main Menu {{-- --}} {{-- action="{{ route('category.list', ['id' => '0']) }}"> --}} {{ __('words.Search') }} @if (getAllFavouriteAds() > 0 && (auth()->check() && auth()->user()->favouritecount > 0)) @endif {{-- --}} @if (auth()->user()) {{-- {{ __('words.Post Ads') }} --}} {{ auth()->user()->getSellerName() }} {{ __('words.Hello') }} {{ auth()->user()->getSellerName() }} {{ __('words.View and edit profile') }} {{ __('words.My Ads') }} {{ __('words.My Store') }} {{ __('words.Add Brand') }} {{ __('words.My Wallet') }} {{ __('words.Invoices') }} {{ !empty(auth()->user()->password) ? __('words.Change Password') : __('words.Set Password') }} {{ __('words.Delete Profile') }} {{ __('words.Profile Help & Support')}} {{ __('words.Logout') }} @else {{-- {{ __('words.Post Ads') }} --}} {{ __('words.Login') }} @endif {{-- {{ __('words.Post Ads') }} --}} {{-- action="{{ route('category.list', ['id' => '0']) }}"> --}} {{-- {{ __('words.Search') }} --}} {{-- {{ __('words.Post Ads') }} --}} {{ __('words.All Categories') }} @foreach ($categories as $category) @if (request()->route()->getName() == 'category.list') query('id') == $category->id ? 'selected' : '' }}> {{ __("category.$category->title") }} @else {{ __("category.$category->title") }} @endif @endforeach @php $id = request()->query('id'); if (!empty($id)) { $cat = \App\Models\Category::find(decrypt($id)); if (!empty($cat)) { $main = $cat->getTopRootParentCategory($cat); } } @endphp @foreach ($categories as $category) @if (!empty($main)) {{ __("category.$category->title") }} @else {{ __("category.$category->title") }} @endif @endforeach @if (request()->route()->getName() == 'category.list') @endif @if (request()->route()->getName() == 'category.list') @endif @endif
{{ auth()->user()->getSellerName() }}
{{ __('words.Hello') }}