{{-- * LaraClassifier - Classified Ads Web Application * Copyright (c) BeDigit. All Rights Reserved * * Website: https://laraclassifier.com * * LICENSE * ------- * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the inclusion * of the above copyright notice. If you Purchased from CodeCanyon, * Please read the full License from here - http://codecanyon.net/licenses/standard --}} @extends('layouts.master') @php $savedSearch ??= []; $apiMessage = $apiMessagePosts ?? null; $apiResult = $apiResultPosts ?? []; $posts = (array)data_get($apiResult, 'data'); $totalPosts = (int)data_get($apiResult, 'meta.total'); $apiExtraPosts ??= []; $query = (array)data_get($apiExtraPosts, 'preSearch.query'); @endphp @section('content') @includeFirst([config('larapen.core.customizedViewPath') . 'common.spacer', 'common.spacer'])
@if (session()->has('flash_notification'))
@include('flash::message')
@endif
@includeFirst([config('larapen.core.customizedViewPath') . 'account.inc.sidebar', 'account.inc.sidebar'])

{{ t('Saved search') }} #{{ data_get($savedSearch, 'id') }}

@php $searchLink = \App\Helpers\UrlGen::search($query, ['page']); @endphp {{ t('search') }}: {{ $searchLink }}
@if (!empty($posts) && $totalPosts > 0) @foreach($posts as $key => $post) @continue(empty(data_get($post, 'city')))
{{ data_get($post, 'count_pictures') }} img
{{ data_get($post, 'title') }}
@if (!empty(data_get($post, 'postType'))) {{ strtoupper(mb_substr(data_get($post, 'postType.name'), 0, 1)) }} @endif {!! data_get($post, 'created_at_formatted') !!} @if (!empty(data_get($post, 'category')))   {{ data_get($post, 'category.name') }} @endif @if (!empty(data_get($post, 'city')))   {{ data_get($post, 'city.name') }} @endif

{!! data_get($post, 'price_formatted') !!}

@endforeach @else
{{ $apiPostsMessage ?? t('Please select a saved search to show the result') }}
@endif
@endsection @section('after_scripts') @endsection