Viewing file: 8ecb2ca699235b58b3a110e5b15ab403.php (33.45 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', __('step1')); ?>
<?php $__env->startSection('post-ad-content'); ?> <div class="overflow-x-hidden" x-data="{ categoryModal: false }"> <form action="<?php echo e(route('frontend.post.store')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="sm:p-8 p-4 flex flex-col gap-8"> <?php if (! isset($_instance)) { $html = \Livewire\Livewire::mount('category-subcategory-component', ['category_id' => old('category_id'), 'subcategory_id' => old('subcategory_id')])->html(); } elseif ($_instance->childHasBeenRendered('30OaCfJ')) { $componentId = $_instance->getRenderedChildComponentId('30OaCfJ'); $componentTag = $_instance->getRenderedChildComponentTagName('30OaCfJ'); $html = \Livewire\Livewire::dummyMount($componentId, $componentTag); $_instance->preserveRenderedChild('30OaCfJ'); } else { $response = \Livewire\Livewire::mount('category-subcategory-component', ['category_id' => old('category_id'), 'subcategory_id' => old('subcategory_id')]); $html = $response->html(); $_instance->logRenderedChild('30OaCfJ', $response->id(), \Livewire\Livewire::getRootElementTagName($html)); } echo $html; ?> <?php $__errorArgs = ['category_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> <?php $__errorArgs = ['subcategory_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>
<div class="flex flex-col gap-4"> <div class="app-select"> <?php if (isset($component)) { $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.flabel','data' => ['name' => 'brand','for' => 'brand','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.flabel'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'brand','for' => 'brand','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $attributes = $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <?php if (isset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $component = $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <select required name="brand_id" id="brand" class="tc-input <?php $__errorArgs = ['brand_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> focus:border-red-500 hover:border-red-500 border-red-500 <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"> <option value=""><?php echo e(__('select_brand')); ?></option> <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php if($ad?->brand_id ?? '' == $brand->id): echo 'selected'; endif; ?> value="<?php echo e($brand->id); ?>"><?php echo e($brand->name); ?>
</option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['brand_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="h-[1px] bg-gray-100"></div> <div class="flex flex-col gap-4"> <div> <?php if (isset($component)) { $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.flabel','data' => ['name' => 'title','for' => 'ad_title','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.flabel'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'title','for' => 'ad_title','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $attributes = $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <?php if (isset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $component = $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <input required type="text" placeholder="<?php echo e(__('title')); ?>" class="tc-input <?php $__errorArgs = ['title']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <?php echo twMerge('focus:border-red-500 hover:border-red-500 border-red-500'); ?> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" name="title" value="<?php echo e(old('title', $ad?->title ?? '')); ?>"> <?php $__errorArgs = ['title']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div> <div class="flex justify-between items-center"> <?php if (isset($component)) { $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.flabel','data' => ['name' => 'price','for' => 'price','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.flabel'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'price','for' => 'price','required' => true]); ?> (<?php echo e(config('templatecookie.currency_symbol')); ?>) <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $attributes = $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <?php if (isset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $component = $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> </div> <input required type="number" min="0" placeholder="<?php echo e(__('price')); ?>" class="tc-input <?php $__errorArgs = ['price']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <?php echo twMerge('focus:border-red-500 hover:border-red-500 border-red-500'); ?> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" name="price" value="<?php echo e(old('price', $ad?->price ?? '')); ?>"> <?php $__errorArgs = ['price']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div> <?php if (isset($component)) { $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms.flabel','data' => ['name' => 'description','for' => 'description','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.flabel'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'description','for' => 'description','required' => true]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $attributes = $__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__attributesOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <?php if (isset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c)): ?> <?php $component = $__componentOriginal2146020b40f8308b09f4f99a4c96cf8c; ?> <?php unset($__componentOriginal2146020b40f8308b09f4f99a4c96cf8c); ?> <?php endif; ?> <textarea required name="description" id="editor2" cols="30" rows="4" class="tc-input <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <?php echo twMerge('focus:border-red-500 hover:border-red-500 border-red-500'); ?> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" placeholder="<?php echo e(__('write_description_of_ad')); ?>"><?php echo e(old('description', $ad?->description ?? '')); ?></textarea> <?php $__errorArgs = ['description']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <div class="h-[1px] bg-gray-100"></div> <div class="col-md-12 input-field__group"> <div class=" w-100 mb-3 space-y-2"> <div class=" flex items-center gap-2"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'location','required' => 'true'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Forms\Label::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if(config('templatecookie.map_show')): ?> <span data-toggle="tooltip" title="Drag the pointer Or click your location" data-original-title="Drag the pointer Or click your location"> <?php if (isset($component)) { $__componentOriginal830ac4dd4ac42457277e370ad8df2e23 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal830ac4dd4ac42457277e370ad8df2e23 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.exclamation','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.exclamation'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal830ac4dd4ac42457277e370ad8df2e23)): ?> <?php $attributes = $__attributesOriginal830ac4dd4ac42457277e370ad8df2e23; ?> <?php unset($__attributesOriginal830ac4dd4ac42457277e370ad8df2e23); ?> <?php endif; ?> <?php if (isset($__componentOriginal830ac4dd4ac42457277e370ad8df2e23)): ?> <?php $component = $__componentOriginal830ac4dd4ac42457277e370ad8df2e23; ?> <?php unset($__componentOriginal830ac4dd4ac42457277e370ad8df2e23); ?> <?php endif; ?> </span> <?php endif; ?> </div>
<?php $map = setting('default_map');
?>
<?php if(config('templatecookie.map_show')): ?> <?php if($map == 'map-box'): ?> <div class="map mymap" id='map-box'></div> <?php elseif($map == 'google-map'): ?> <div class="space-y-4"> <input id="searchInput" class="mapClass" type="text" placeholder="<?php echo e(__('enter_a_location')); ?>"> <div class="map mymap" id="google-map"></div> </div> <?php elseif($map == 'leaflet'): ?> <div class="space-y-4"> <div class="auto-search-wrapper"> <input id="leaflet_search" required type="text" placeholder="<?php echo e(__('Enter Location')); ?>" class="tc-input w-full" name="location" value="<?php echo e(request('location')); ?>" autocomplete="off"> </div>
<div id="leaflet-map"> </div> </div> <?php endif; ?> <?php $__errorArgs = ['location']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <p class="text-sm text-red-600 dark:text-red-500"><?php echo e($message); ?></p> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> <?php else: ?> <?php if (! isset($_instance)) { $html = \Livewire\Livewire::mount('country-state-city')->html(); } elseif ($_instance->childHasBeenRendered('HGLg2ih')) { $componentId = $_instance->getRenderedChildComponentId('HGLg2ih'); $componentTag = $_instance->getRenderedChildComponentTagName('HGLg2ih'); $html = \Livewire\Livewire::dummyMount($componentId, $componentTag); $_instance->preserveRenderedChild('HGLg2ih'); } else { $response = \Livewire\Livewire::mount('country-state-city'); $html = $response->html(); $_instance->logRenderedChild('HGLg2ih', $response->id(), \Livewire\Livewire::getRootElementTagName($html)); } echo $html; ?> <?php endif; ?> </div> </div> </div> <div class="post-footer"> <input type="submit" name="draft" class="btn-secondary cursor-pointer py-3 px-5" value="<?php echo e(__('save_on_draft')); ?>" /> <button type="submit" class="btn-primary py-3 px-5"><?php echo e(__('save_and_next')); ?></button> </div> </form> </div> <?php $__env->stopSection(); ?>
<?php $__env->startPush('css'); ?> <?php if (isset($component)) { $__componentOriginal3e300f156325fa92f96d8a516b8d8659 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3e300f156325fa92f96d8a516b8d8659 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.map.leaflet.map_links','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('map.leaflet.map_links'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3e300f156325fa92f96d8a516b8d8659)): ?> <?php $attributes = $__attributesOriginal3e300f156325fa92f96d8a516b8d8659; ?> <?php unset($__attributesOriginal3e300f156325fa92f96d8a516b8d8659); ?> <?php endif; ?> <?php if (isset($__componentOriginal3e300f156325fa92f96d8a516b8d8659)): ?> <?php $component = $__componentOriginal3e300f156325fa92f96d8a516b8d8659; ?> <?php unset($__componentOriginal3e300f156325fa92f96d8a516b8d8659); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc55f239e5bf30e5997dd7869a18fb76b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc55f239e5bf30e5997dd7869a18fb76b = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.map.leaflet.autocomplete_links','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('map.leaflet.autocomplete_links'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc55f239e5bf30e5997dd7869a18fb76b)): ?> <?php $attributes = $__attributesOriginalc55f239e5bf30e5997dd7869a18fb76b; ?> <?php unset($__attributesOriginalc55f239e5bf30e5997dd7869a18fb76b); ?> <?php endif; ?> <?php if (isset($__componentOriginalc55f239e5bf30e5997dd7869a18fb76b)): ?> <?php $component = $__componentOriginalc55f239e5bf30e5997dd7869a18fb76b; ?> <?php unset($__componentOriginalc55f239e5bf30e5997dd7869a18fb76b); ?> <?php endif; ?>
<!-- >=>Mapbox<=< --> <link rel="stylesheet" href="<?php echo e(asset('frontend/plugins/mapbox/mapbox-gl-geocoder.css')); ?>" type="text/css"> <link href="<?php echo e(asset('frontend/plugins/mapbox/mapbox-gl.css')); ?>" rel="stylesheet"> <link rel="stylesheet" href="<?php echo e(asset('frontend/plugins/intlTelInput/css/intlTelInput.min.css')); ?>"> <style> .mymap { width: 100%; min-height: 300px; border-radius: 12px; }
.p-half { padding: 1px; }
.mapClass { border: 1px solid transparent; margin-top: 15px; border-radius: 4px 0 0 4px; box-sizing: border-box; -moz-box-sizing: border-box; height: 35px; outline: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
#searchInput { font-family: 'Roboto'; background-color: #fff; font-size: 16px; text-overflow: ellipsis; margin-left: 16px; font-weight: 400; width: 30%; padding: 0 11px 0 13px; }
#searchInput:focus { border-color: #4d90fe; }
.iti { width: 100% !important; }
.iti__country-list { z-index: 9999 !important; }
.swiper-button-disabled.choose-category-slider_prev, .swiper-button-disabled.choose-category-slider_next { background: var(--primary-200); cursor: not-allowed; } </style> <!-- >=>Mapbox<=< --> <link rel="stylesheet" href="<?php echo e(asset('backend/css/select2.min.css')); ?>"> <?php $__env->stopPush(); ?>
<?php $__env->startPush('js'); ?>
<script defer src="<?php echo e(asset('backend/plugins/select2/js/select2.min.js')); ?>" type="text/javascript"></script> <script src="<?php echo e(asset('backend')); ?>/dist/js/ckeditor/ckeditor.js"></script> <script src="<?php echo e(asset('backend')); ?>/dist/js/ckeditor/config.js"></script> <script> // Category wise subcategories dropdown $('#category').on('change', function() { var categoryID = $(this).val(); if (categoryID) { cat_wise_subcat(categoryID); } // display subcategory $('#subcategory').prop('disabled', false); });
var subct_id = document.getElementById('subct_id')?.value;
$(document).ready(function() { $('#category').prepend('<option value="" selected><?php echo e(__('select_category')); ?></option>'); var category_id = document.getElementById('category').value; cat_wise_subcat(category_id); $('#category').select2({ placeholder: 'Select Category' }); $('#subcategory').select2({ placeholder: 'Select Subcategory' }) $('#brand').select2({ placeholder: 'Select Brand' }) });
// category wise subcategory function function cat_wise_subcat(categoryID) { axios.get('/get-sub-categories/' + categoryID).then((res => { if (res.data && res.data.length > 0) { console.log(res);
$('#subcategory').empty(); $.each(res.data, function(key, subcat) {
var matched = parseInt(subct_id) === subcat.id ? true : false
$('select[name="subcategory_id"]').append( `<option ${matched ? 'selected':''} value="${subcat.id}">${subcat.name}</option>` ); }); } else { $('#subcategory').empty(); $('select[name="subcategory_id"]').append('<option value="">No category found</option>'); } })) } </script> <script> CKEDITOR.replace('editor2', { height: 200, }); </script>
<?php if($map == 'map-box'): ?> <?php if (isset($component)) { $__componentOriginal764c766dc06c4edf0c270e205b267637 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal764c766dc06c4edf0c270e205b267637 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.map.set-mapbox','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('map.set-mapbox'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal764c766dc06c4edf0c270e205b267637)): ?> <?php $attributes = $__attributesOriginal764c766dc06c4edf0c270e205b267637; ?> <?php unset($__attributesOriginal764c766dc06c4edf0c270e205b267637); ?> <?php endif; ?> <?php if (isset($__componentOriginal764c766dc06c4edf0c270e205b267637)): ?> <?php $component = $__componentOriginal764c766dc06c4edf0c270e205b267637; ?> <?php unset($__componentOriginal764c766dc06c4edf0c270e205b267637); ?> <?php endif; ?> <?php elseif($map == 'google-map'): ?> <?php if (isset($component)) { $__componentOriginale235bccb623a78cd58782587b1552b91 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginale235bccb623a78cd58782587b1552b91 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.map.set-googlemap','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('map.set-googlemap'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginale235bccb623a78cd58782587b1552b91)): ?> <?php $attributes = $__attributesOriginale235bccb623a78cd58782587b1552b91; ?> <?php unset($__attributesOriginale235bccb623a78cd58782587b1552b91); ?> <?php endif; ?> <?php if (isset($__componentOriginale235bccb623a78cd58782587b1552b91)): ?> <?php $component = $__componentOriginale235bccb623a78cd58782587b1552b91; ?> <?php unset($__componentOriginale235bccb623a78cd58782587b1552b91); ?> <?php endif; ?> <?php elseif($map == 'leaflet'): ?> <?php if (isset($component)) { $__componentOriginalcda2d2ba94e93d2a4a64ea92386796a8 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcda2d2ba94e93d2a4a64ea92386796a8 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.map.leaflet.leafletmap','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('map.leaflet.leafletmap'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcda2d2ba94e93d2a4a64ea92386796a8)): ?> <?php $attributes = $__attributesOriginalcda2d2ba94e93d2a4a64ea92386796a8; ?> <?php unset($__attributesOriginalcda2d2ba94e93d2a4a64ea92386796a8); ?> <?php endif; ?> <?php if (isset($__componentOriginalcda2d2ba94e93d2a4a64ea92386796a8)): ?> <?php $component = $__componentOriginalcda2d2ba94e93d2a4a64ea92386796a8; ?> <?php unset($__componentOriginalcda2d2ba94e93d2a4a64ea92386796a8); ?> <?php endif; ?> <?php endif; ?> <?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.postad.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\resources\views/frontend/postad/step.blade.php ENDPATH**/ ?>
|