<div class="main-title d-md-flex form_div_header">
    <h3 class="mb-3 mr-30 mb_xs_15px mb_sm_20px"><?php echo e(__('product.add_category')); ?> </h3>
    <?php if(permissionCheck('product.bulk_category_upload_page')): ?>
        <ul class="d-flex">
            <li><a class="primary-btn radius_30px mr-10 fix-gr-bg" href="<?php echo e(route('product.bulk_category_upload_page')); ?>"><i class="ti-plus"></i><?php echo e(__('product.bulk_category_upload')); ?></a></li>
        </ul>
    <?php endif; ?>
</div>

<form method="POST" action="" accept-charset="UTF-8" class="form-horizontal" enctype="multipart/form-data"
id="add_category_form">

    <div class="white-box">
        <div class="add-visitor">
            <div class="row">

                <div class="col-lg-12">
                    <div class="primary_input mb-25">
                        <label class="primary_input_label" for="name">
                            <?php echo e(__('common.name')); ?>

                            <span class="text-danger">*</span>
                        </label>
                        <input class="primary_input_field name" type="text" id="name" name="name" autocomplete="off"  placeholder="<?php echo e(__('common.name')); ?>">
                    </div>
                    <span class="text-danger" id="error_name"></span>
                </div>

                <div class="col-lg-12">
                    <div class="primary_input mb-25">
                        <label class="primary_input_label" for="slug">
                           <?php echo e(__('common.slug')); ?>

                            <span class="text-danger">*</span>
                        </label>
                        <input class="primary_input_field slug" type="text" id="slug" name="slug" autocomplete="off" placeholder="<?php echo e(__('common.slug')); ?>">
                    </div>
                    <span class="text-danger"  id="error_slug"></span>
                </div>

                <?php if(isModuleActive('MultiVendor')): ?>
                <div class="col-lg-12">
                    <div class="primary_input mb-25">
                        <label class="primary_input_label" for="name">
                            <?php echo e(__('common.commission_rate')); ?>

                        </label>
                        <input class="primary_input_field commission_rate" type="number" min="0" step="<?php echo e(step_decimal()); ?>" value="0" id="commission_rate" name="commission_rate" autocomplete="off"  placeholder="<?php echo e(__('common.commission_rate')); ?>">
                    </div>
                    <span class="text-danger" id="error_commission_rate"></span>
                </div>
                <?php endif; ?>

                <div class="col-lg-12">
                    <div class="primary_input mb-25">
                        <label class="primary_input_label" for="icon">
                           <?php echo e(__('common.icon')); ?> (<?php echo e(__('product.to_use_themefy_icon_please_type_here_or_select_fontawesome_from_list')); ?>)
                        </label>
                        <input class="primary_input_field" type="text" id="icon" name="icon"
                        autocomplete="off" placeholder="<?php echo e(__('common.icon')); ?>">
                    </div>
                    <span class="text-danger"  id="error_icon"></span>
                </div>

                <div class="col-xl-12 mt-20">
                    <div class="primary_input">
                        <label class="primary_input_label" for=""><?php echo e(__('product.searchable')); ?></label>
                        <ul id="theme_nav" class="permission_list sms_list ">
                            <li>
                                <label data-id="bg_option" class="primary_checkbox d-flex mr-12 extra_width">
                                    <input name="searchable" id="searchable_active" value="1" checked="true"
                                        class="active" type="radio">
                                    <span class="checkmark"></span>
                                </label>
                                <p><?php echo e(__('common.active')); ?></p>
                            </li>
                            <li>
                                <label data-id="color_option" class="primary_checkbox d-flex mr-12 extra_width">
                                    <input name="searchable" id="searchable_inactive" value="0"
                                        class="de_active" type="radio">
                                    <span class="checkmark"></span>
                                </label>
                                <p><?php echo e(__('common.inactive')); ?></p>
                            </li>
                        </ul>
                        <span class="text-danger" id="error_searchable"></span>
                    </div>
                </div>

                 <div class="col-xl-12">
                    <div class="primary_input">
                        <label class="primary_input_label" for=""><?php echo e(__('common.status')); ?></label>
                        <ul id="theme_nav" class="permission_list sms_list ">
                            <li>
                                <label data-id="bg_option" class="primary_checkbox d-flex mr-12 extra_width">
                                    <input name="status" id="status_active" value="1" checked="true" class="active"
                                        type="radio">
                                    <span class="checkmark"></span>
                                </label>
                                <p><?php echo e(__('common.active')); ?></p>
                            </li>
                            <li>
                                <label data-id="color_option" class="primary_checkbox d-flex mr-12 extra_width">
                                    <input name="status" value="0" id="status_inactive" class="de_active" type="radio">
                                    <span class="checkmark"></span>
                                </label>
                                <p><?php echo e(__('common.inactive')); ?></p>
                            </li>
                        </ul>
                        <span class="text-danger" id="error_status"></span>
                    </div>
                </div>


                <div class="col-xl-12">
                    <div class="primary_input">
                        <ul id="theme_nav" class="permission_list sms_list ">
                            <li>
                                <label data-id="bg_option" class="primary_checkbox d-flex mr-12">
                                    <input class="in_sub_cat" name="category_type" id="sub_cat" value="subCategory" type="checkbox">
                                    <span class="checkmark"></span>
                                </label>
                                <p><?php echo e(__('product.add_as_sub_category')); ?></p>
                            </li>
                        </ul>
                        <span class="text-danger" id=""></span>
                    </div>
                </div>


                <div class="col-xl-12 d-none in_parent_div" id="sub_cat_div">
                    <div class="primary_input mb-25">
                        <label class="primary_input_label" for=""><?php echo e(__('product.parent_category')); ?> <span class="text-danger">*</span></label>
                        <select class="primary_select mb-25" name="parent_id" id="parent_id">
                            <?php $__currentLoopData = $CategoryList->where('status', 1)->where('parent_id', 0); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                <option value="<?php echo e($item->id); ?>"><span>-></span> <?php echo e($item->name); ?></option>
                                <?php if(count($item->subCategories) > 0): ?>
                                    <?php $__currentLoopData = $item->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <?php echo $__env->make('product::category.components.category_select',['subItem' => $subItem], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>

                        <span class="text-danger"></span>

                    </div>
                </div>

                <div class="col-xl-12 upload_photo_div">
                    <div class="primary_input">
                        <label class="primary_input_label" for=""><?php echo e(__('common.upload_photo')); ?></label>

                        <span class="text-danger" id="photo_error"></span>
                    </div>
                </div>
                <div class="single_p col-xl-12 upload_photo_div">
                    <h6>Ratio: (225 X 225)PX</h6>


                    <div class="primary_input mb-25">
                        <div class="primary_file_uploader">
                          <input class="primary-input" type="text" id="image_file" placeholder="<?php echo e(__('common.browse_image_file')); ?>" readonly="">
                          <button class="" type="button">
                              <label class="primary-btn small fix-gr-bg" for="image"><?php echo e(__("common.browse")); ?> </label>
                              <input type="file" class="d-none" accept="image/*" name="image" id="image">
                          </button>
                       </div>

                       <?php $__errorArgs = ['logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class="text-danger"><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    <div class="form_img_div">
                        <img id="catImgShow" src="<?php echo e(showImage('backend/img/default.png')); ?>" alt="">
                    </div>

                </div>

            </div>

                <div class="row mt-40">
                        <div class="col-lg-12 text-center">
                            <button id="create_btn" type="submit" class="primary-btn fix-gr-bg submit_btn" data-toggle="tooltip" title=""
                                data-original-title="">
                                <span class="ti-check"></span>
                                <?php echo e(__('common.save')); ?> </button>
                        </div>
                </div>
        </div>
    </div>
</form>
<?php /**PATH /home/penastud/public_html/gsport/Modules/Product/Resources/views/category/components/create.blade.php ENDPATH**/ ?>