!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/storage/framework/views/   drwxr-xr-x
Free 28.29 GB of 117.98 GB (23.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     a3e1cde052d5ffbe8916d8388ed8ebf8.php (24.87 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'__('step1')); ?>

<?php $__env->startSection('post-ad-content'); ?>
    <div>

        <form action="<?php echo e(route('frontend.post.update'$ad->slug)); ?>" method="POST" id="step_edit_form">
            <?php echo csrf_field(); ?>
            <?php echo method_field('PUT'); ?>
            <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' => $ad?->category_id'subcategory_id' => $ad?->subcategory_id])->html();
} elseif (
$_instance->childHasBeenRendered('cGTbhYf')) {
    
$componentId $_instance->getRenderedChildComponentId('cGTbhYf');
    
$componentTag $_instance->getRenderedChildComponentTagName('cGTbhYf');
    
$html \Livewire\Livewire::dummyMount($componentId$componentTag);
    
$_instance->preserveRenderedChild('cGTbhYf');
} else {
    
$response \Livewire\Livewire::mount('category-subcategory-component', ['category_id' => $ad?->category_id'subcategory_id' => $ad?->subcategory_id]);
    
$html $response->html();
    
$_instance->logRenderedChild('cGTbhYf'$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="h-[1px] bg-gray-100"></div>

                <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 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="text" 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 name="description" id="description" 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">
                        <?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; ?>
                        <?php
                            $map 
setting('default_map');
                            
session([
                                
'selectedCountryId' => null,
                                
'selectedStateId' => null,
                                
'selectedCityId' => null,
                            ]);
                            
session([
                                
'selectedCountryId' => $ad->country,
                                
'selectedStateId' => $ad->region,
                                
'selectedCityId' => $ad->district,
                            ]);
                        
?>
                        <?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>
                                    <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>
                                    <input type="text" autocomplete="off" id="leaflet_search"
                                        placeholder="<?php echo e(__('enter_city_name')); ?>" class="full-width form-control" />
                                    <br>
                                    <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('pBYAKpn')) {
    
$componentId $_instance->getRenderedChildComponentId('pBYAKpn');
    
$componentTag $_instance->getRenderedChildComponentTagName('pBYAKpn');
    
$html \Livewire\Livewire::dummyMount($componentId$componentTag);
    
$_instance->preserveRenderedChild('pBYAKpn');
} else {
    
$response \Livewire\Livewire::mount('country-state-city');
    
$html $response->html();
    
$_instance->logRenderedChild('pBYAKpn'$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')); ?>" />
                <div>
                    <a href="<?php echo e(route('frontend.post.cancel.edit')); ?>" type="button"
                        class="btn-danger py-3 px-5"><?php echo e(__('cancel_edit')); ?></a>

                        <?php if($ad->resubmission == true): ?>
                        <button onclick="updateCancelEdit()" type="button"
                        class="btn-info py-3 px-5"><?php echo e(__('save_and_resubmit')); ?></button>
                        <?php else: ?>
                        <button onclick="updateCancelEdit()" type="button"
                        class="btn-info py-3 px-5"><?php echo e(__('update_cancel_edit')); ?></button>
                        <?php endif; ?>

                    <button type="submit" class="btn-primary py-3 px-5"><?php echo e(__('save_and_next')); ?></button>
                </div>
            </div>

            <input type="hidden" id="cancel_edit_input" name="cancel_edit" value="0">
        </form>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('css'); ?>
    <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();
            console.log({
                categoryID
            })
            if (categoryID) {
                cat_wise_subcat(categoryID);
            }
        });

        var subct_id = document.getElementById('subct_id')?.value;

        $(document).ready(function() {
            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) {
                    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();
                }
            }))
        }
    </script>
     
    <script>
         CKEDITOR.replace('description', {
             height: 200,
         });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.postad_edit.index'\Illuminate\Support\Arr::except(get_defined_vars(), ['__data''__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\resources\views/frontend/postad_edit/step.blade.php ENDPATH**/ ?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]--