{{-- * 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') @section('wizard') @includeFirst([ config('larapen.core.customizedViewPath') . 'post.createOrEdit.multiSteps.inc.wizard', 'post.createOrEdit.multiSteps.inc.wizard', ]) @endsection @php $postInput ??= []; $postTypes ??= []; $countries ??= []; $options = App\Helpers\SaleStatus::getSaleStatusOptions(); $customFieldsHtml ?? ''; $nonDefaults ?? []; @endphp @section('content') @includeFirst([config('larapen.core.customizedViewPath') . 'common.spacer', 'common.spacer'])
@includeFirst([ config('larapen.core.customizedViewPath') . 'post.inc.notification', 'post.inc.notification', ])

{{ t('create_new_listing') }}

{!! csrf_field() !!}
{{-- category_id --}}
@if (config('settings.single.show_listing_types')) {{-- post_type_id --}} {{-- @php $postTypeIdError = isset($errors) && $errors->has('post_type_id') ? ' is-invalid' : ''; $postTypeId = old('post_type_id', data_get($postInput, 'post_type_id')); @endphp --}} {{--
@foreach ($postTypes as $postType)
@endforeach
{{ t('post_type_hint') }}
--}} @endif {{-- title --}}
{{-- description --}} @if (!in_array('description', $nonDefaults)) @php $descriptionError = isset($errors) && $errors->has('description') ? ' is-invalid' : ''; $postDescription = data_get($postInput, 'description'); $descriptionErrorLabel = ''; $descriptionColClass = 'col-md-8'; if (config('settings.single.wysiwyg_editor') != 'none') { $descriptionColClass = 'col-md-12'; $descriptionErrorLabel = $descriptionError; } @endphp
{{--
{{ t('describe_what_makes_your_listing_unique') }}...
--}}
@endif {{-- customFieldsHtml --}} {!! $customFieldsHtml !!} {{-- cfContainer --}}
{{-- sale status --}} @if (!in_array('saleStatus', $nonDefaults)) @php $saleStatusError = isset($errors) && $errors->has('saleStatus') ? ' is-invalid' : ''; @endphp
@endif {{-- price --}} @if (!in_array('price', $nonDefaults)) @php $priceError = isset($errors) && $errors->has('price') ? ' is-invalid' : ''; $price = old('price', data_get($postInput, 'price')); $price = \App\Helpers\Number::format($price, 2, '.', ''); @endphp
{!! config('currency')['symbol'] !!}   {{ t('negotiable') }}
{{--
{{ t('price_hint') }}
--}}
@endif {{-- country_code --}} @php $countryCodeError = isset($errors) && $errors->has('country_code') ? ' is-invalid' : ''; $countryCodeValue = !empty(config('ipCountry.code')) ? config('ipCountry.code') : 0; $countryCodeValue = data_get($postInput, 'country_code', $countryCodeValue); $countryCodeValueOld = old('country_code', $countryCodeValue); @endphp @if (empty(config('country.code')))
@else @endif @php $adminType = config('country.admin_type', 0); @endphp @if (config('settings.single.city_selection') == 'select') @if (in_array($adminType, ['1', '2'])) {{-- admin_code --}}
@endif @else @endif {{-- city_id --}}