

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

    <div class="add-product-content p-0 shadow-none">
        <div class="row">
            <div class="col-lg-12">
                <div class="product-description">
                    <div class="body-area shadow-none">
                    <?php echo $__env->make('includes.admin.form-error', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <input type="hidden" id="sub_category_id" value="<?php echo e($data->id); ?>">
                    <div class="gocover" style="background: url(<?php echo e(asset('assets/images/'.$gs->admin_loader)); ?>) no-repeat scroll center center rgba(45, 45, 45, 0.5);"></div>
                     <form id="geniusformdata" action="<?php echo e(route('subcategories.update',$data->id)); ?>" method="POST" enctype="multipart/form-data">
                            <?php echo e(csrf_field()); ?>


                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="left-area">
                                        <h4 class="heading"><?php echo e(__('Language')); ?> *</h4>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <select name="language_id" id="category_language_id">
                                        <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($language->id); ?>" <?php echo e($language->id == $data->language_id ? 'selected' : ''); ?>><?php echo e($language->language); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>


                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="left-area">
                                        <h4 class="heading"><?php echo e(__('Parent Category')); ?> *</h4>
                                        <p class="sub-heading"><?php echo e(__('In English')); ?></p>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <select name="parent_id" id="category_parent_id">

                                    </select>
                                </div>
                            </div>



                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="left-area">
                                        <h4 class="heading"><?php echo e(__('Title')); ?> *</h4>
                                        <p class="sub-heading"><?php echo e(__('(In Any Language)')); ?></p>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <input type="text" class="input-field" name="title"
                                        placeholder="<?php echo e(__('Title')); ?>" value="<?php echo e($data->title); ?>">
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="left-area">
                                        <h4 class="heading"><?php echo e(__('Slug')); ?> *</h4>
                                        <p class="sub-heading"><?php echo e(__('In English')); ?></p>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <input type="text" class="input-field" name="slug"
                                        placeholder="<?php echo e(__('Slug')); ?>" value="<?php echo e($data->slug); ?>">
                                </div>
                            </div>


                            <div class="row">
                                <div class="col-lg-4">
                                    <div class="left-area">
                                        <h4 class="heading"><?php echo e(__('Show At Menu')); ?> *</h4>
                                    </div>
                                </div>
                                <div class="col-lg-8">
                                    <div class="custom-control custom-radio d-inline-block mr-4">
                                        <input class="custom-control-input" type="radio" class="checklist1" id="show_at_homepage1" name="show_on_menu" value="1"  <?php if($data->show_on_menu ==1): ?> checked <?php endif; ?>>
                                        <label class="custom-control-label" for="show_at_homepage1"><?php echo e(__('Yes')); ?></label>
                                    </div>
                                    <div class="custom-control custom-radio d-inline-block">
                                        <input class="custom-control-input" type="radio" class="checklist1" id="show_at_homepage0" name="show_on_menu" value="0" <?php if($data->show_on_menu ==0): ?> checked <?php endif; ?>> 
                                        <label class="custom-control-label" for="show_at_homepage0"><?php echo e(__('No')); ?></label>
                                    </div>

                                </div>
                            </div>
                           
                            <br>
                            <div class="row">
                                <div class="col-lg-12">
                                    <button class="addProductSubmit-btn" type="submit"><?php echo e(__('Update Sub Category')); ?></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>


<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
<script src="<?php echo e(asset('assets/admin/js/subEdit.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.load', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\project\resources\views/admin/subcategory/edit.blade.php ENDPATH**/ ?>