{{-- * 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 ??= []; $postTypes ??= []; $countries ??= []; $postCatParentId = data_get($post, 'category.parent_id'); $postCatParentId = (empty($postCatParentId)) ? data_get($post, 'category.id', 0) : $postCatParentId; @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() !!}
{{-- 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($post, 'post_type_id')); @endphp
@foreach ($postTypes as $postType)
@endforeach
{{ t('post_type_hint') }}
@endif {{-- title --}}
{{ t('a_great_title_needs_at_least_60_characters') }}
{{-- description --}} @php $descriptionError = (isset($errors) && $errors->has('description')) ? ' is-invalid' : ''; $postDescription = data_get($post, 'description'); $descriptionErrorLabel = ''; $descriptionColClass = 'col-md-8'; if (config('settings.single.wysiwyg_editor') != 'none') { $descriptionColClass = 'col-md-12'; $descriptionErrorLabel = $descriptionError; } else { $postDescription = strip_tags($postDescription); } @endphp
{{ t('describe_what_makes_your_listing_unique') }}
{{-- cfContainer --}}
{{-- price --}} @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') }}
{{ t('price_hint') }}
{{-- 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 --}}
{{-- tags --}} @php $tagsError = (isset($errors) && $errors->has('tags.*')) ? ' is-invalid' : ''; $tags = old('tags', data_get($post, 'tags')); @endphp
{!! t('tags_hint', [ 'limit' => (int)config('settings.single.tags_limit', 15), 'min' => (int)config('settings.single.tags_min_length', 2), 'max' => (int)config('settings.single.tags_max_length', 30) ]) !!}
{{-- is_permanent --}} @if (config('settings.single.permanent_listings_enabled') == '3') @else
{{ t('is_permanent_hint') }}
@endif
{{ t('seller_information') }}
{{-- 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'])