{{-- * 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 $post ??= []; $saleSatusOptions ??= []; $CFsHtml ??= ''; $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('update_my_listing') }} {!! str(data_get($post, 'title'))->limit(45) !!}

{!! csrf_field() !!}
{{-- Custom Fields Html --}} {!! $CFsHtml !!} {{-- price --}} @if (!in_array('price', $nonDefaults)) @php $priceError = isset($errors) && $errors->has('price') ? ' is-invalid' : ''; $price = old('price', data_get($post, 'price')); $price = \App\Helpers\Number::format($price, 2, '.', ''); @endphp
{!! config('currency')['symbol'] !!}   {{ t('negotiable') }}
@endif {{-- country_code --}} @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 @php $adminType = in_array($adminType, ['0', '1', '2']) ? $adminType : 0; $relAdminType = in_array($adminType, ['1', '2']) ? $adminType : 1; $adminCode = data_get( $post, 'city.subadmin' . $relAdminType . '_code', 0, ); $adminCode = data_get( $post, 'city.subAdmin' . $relAdminType . '.code', $adminCode, ); $adminName = data_get($post, 'city.subAdmin' . $relAdminType . '.name'); $cityId = data_get($post, 'city.id', 0); $cityName = data_get($post, 'city.name'); $fullCityName = !empty($adminName) ? $cityName . ', ' . $adminName : $cityName; @endphp @endif {{-- city_id --}}
{{-- sale status --}} @if (!in_array('saleStatus', $nonDefaults)) @php $saleStatusError = isset($errors) && $errors->has('saleStatus') ? ' is-invalid' : ''; @endphp
@endif
{{ t('seller_information') }}
{{-- country_code --}} {{-- contact_name --}}
{{-- auth_field (as notification channel) --}} @php $authFields = getAuthFields(true); $authFieldError = isset($errors) && $errors->has('auth_field') ? ' is-invalid' : ''; $usersCanChooseNotifyChannel = isUsersCanChooseNotifyChannel(); $authFieldValue = data_get($post, 'auth_field') ?? getAuthField(); $authFieldValue = $usersCanChooseNotifyChannel ? old('auth_field', $authFieldValue) : $authFieldValue; @endphp @if ($usersCanChooseNotifyChannel)
@foreach ($authFields as $iAuthField => $notificationType)
@endforeach
{{ t('notifications_channel_hint') }}
@else @endif @php $forceToDisplay = isBothAuthFieldsCanBeDisplayed() ? ' force-to-display' : ''; @endphp {{-- email --}} @php $emailError = isset($errors) && $errors->has('email') ? ' is-invalid' : ''; @endphp
{{-- phone --}} @php $phoneError = isset($errors) && $errors->has('phone') ? ' is-invalid' : ''; $phoneValue = data_get($post, 'phone'); $phoneCountryValue = data_get($post, 'phone_country') ?? config('country.code'); $phoneValue = phoneE164($phoneValue, $phoneCountryValue); $phoneValueOld = phoneE164( old('phone', $phoneValue), old('phone_country', $phoneCountryValue), ); @endphp
  {{ t('Hide') }}
{{-- Button --}}
{{ t('Back') }}
@includeFirst([ config('larapen.core.customizedViewPath') . 'post.createOrEdit.inc.right-sidebar', 'post.createOrEdit.inc.right-sidebar', ])
@includeFirst([ config('larapen.core.customizedViewPath') . 'post.createOrEdit.inc.category-modal', 'post.createOrEdit.inc.category-modal', ]) @endsection @section('after_styles') @endsection @section('after_scripts') @endsection @includeFirst([ config('larapen.core.customizedViewPath') . 'post.createOrEdit.inc.form-assets', 'post.createOrEdit.inc.form-assets', ])