{{-- * --}} @extends('layouts.master') @php $apiResult ??= []; $apiExtra ??= []; $count = (array)data_get($apiExtra, 'count'); $posts = (array)data_get($apiResult, 'data'); $totalPosts = (int)data_get($apiResult, 'meta.total', 0); $tags = (array)data_get($apiExtra, 'tags'); $postTypes ??= []; $orderByOptions ??= []; $displayModes ??= []; @endphp @section('search') @parent @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.form', 'search.inc.form']) @endsection @section('content')
@if (session()->has('flash_notification')) @includeFirst([config('larapen.core.customizedViewPath') . 'common.spacer', 'common.spacer'])
@include('flash::message')
@endif @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.breadcrumbs', 'search.inc.breadcrumbs']) @if (config('settings.list.show_cats_in_top')) @if (isset($cats) && !empty($cats))
@endif @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.categories', 'search.inc.categories']) @endif @if (isset($topAdvertising) && !empty($topAdvertising)) @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.advertising.top', 'layouts.inc.advertising.top'], ['paddingTopExists' => true]) @php $paddingTopExists = false; @endphp @else @php if (isset($paddingTopExists) && $paddingTopExists) { $paddingTopExists = false; } @endphp @endif
{{-- Sidebar --}} @if (config('settings.list.left_sidebar')) @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.sidebar', 'search.inc.sidebar']) @php $contentColSm = 'col-md-9'; @endphp @else @php $contentColSm = 'col-md-12'; @endphp @endif {{-- Content --}}
{{-- Nav tabs --}}
{{-- OrderBy Desktop --}}

{!! (isset($htmlTitle)) ? $htmlTitle : '' !!}

{{-- Display Modes --}} @if (!empty($posts) && $totalPosts > 0) @php $currDisplay = config('settings.list.display_mode'); @endphp
@if (isset($displayModes) && !empty($displayModes)) @foreach($displayModes as $displayMode => $value) @if ($currDisplay == $displayMode) @else @php $displayModeUrl = request()->fullUrlWithQuery((array)data_get($value, 'query')); @endphp @endif @endforeach @endif
@endif
{{-- Mobile Filter Bar --}}
    @if (config('settings.list.left_sidebar'))
  • {{ t('Filters') }}
  • @endif
  • {{-- OrderBy Mobile --}}
{{-- Mobile Filter bar End--}}
@if (config('settings.list.display_mode') == 'make-list') @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.posts.template.list', 'search.inc.posts.template.list']) @elseif (config('settings.list.display_mode') == 'make-compact') @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.posts.template.compact', 'search.inc.posts.template.compact']) @else @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.posts.template.grid', 'search.inc.posts.template.grid']) @endif
@if (request()->filled('q') && request()->get('q') != '' && data_get($count, '0') > 0) @endif
{{-- Advertising --}} @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.advertising.bottom', 'layouts.inc.advertising.bottom']) {{-- Promo Listing Button --}}

{{ t('do_you_have_anything') }}

{{ t('sell_products_and_services_online_for_free') }}
@if (!auth()->check() && config('settings.single.guests_can_post_listings') != '1') {{ t('start_now') }} @else {{ t('start_now') }} @endif
{{-- Category Description --}} @if (isset($cat) && !empty(data_get($cat, 'description'))) @if (!(bool)data_get($cat, 'hide_description'))
{!! data_get($cat, 'description') !!}
@endif @endif {{-- Show Posts Tags --}} @if (config('settings.list.show_listings_tags')) @if (isset($tags) && !empty($tags))

{{ t('Tags') }}:

@foreach($tags as $iTag) {{ $iTag }} @endforeach
@endif @endif
@endsection @section('modal_location') @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.modal.location', 'layouts.inc.modal.location']) @endsection @section('after_scripts') @endsection