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

<div class="card shadow-none border-0 mb-0">
    <div class="card-body p-3">
        <?php echo $__env->make('includes.admin.form-both', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <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('categories.categoriesUpdate',$data->id)); ?>" method="POST" enctype="multipart/form-data">
            <?php echo e(csrf_field()); ?>


            <div class="row">
                <div class="col-md-6 mb-3">
                    <label class="form-label"><?php echo e(__('Language')); ?> <span class="text-danger">*</span></label>
                    <select name="language_id" class="form-select">
                        <?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 class="col-md-6 mb-3">
                    <label class="form-label"><?php echo e(__('Menu Order')); ?> <span class="text-danger">*</span></label>
                    <input type="number" class="form-control" name="category_order" placeholder="<?php echo e(__('Menu Order')); ?>" value="<?php echo e($data->category_order); ?>">
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label"><?php echo e(__('Title')); ?> <span class="text-danger">*</span></label>
                    <input type="text" class="form-control" name="title" placeholder="<?php echo e(__('Title')); ?>" value="<?php echo e($data->title); ?>" id="title">
                    <small class="text-muted"><?php echo e(__('(In Any Language)')); ?></small>
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label"><?php echo e(__('Slug')); ?> <span class="text-danger">*</span></label>
                    <input type="text" class="form-control" name="slug" placeholder="<?php echo e(__('Slug')); ?>" value="<?php echo e($data->slug); ?>" id="slug">
                    <small class="text-muted"><?php echo e(__('In English')); ?></small>
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label"><?php echo e(__('Color')); ?> <span class="text-danger">*</span></label>
                    <div class="input-group colorpicker-component cp">
                        <input type="text" name="color" class="form-control color-field cp" value="<?php echo e($data->color); ?>">
                        <span class="input-group-text"><i></i></span>
                    </div>
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label d-block"><?php echo e(__('Show At Home Page')); ?> <span class="text-danger">*</span></label>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="show_at_homepage" id="show_at_homepage1" value="1" <?php if($data->show_at_homepage ==1): ?> checked <?php endif; ?>>
                        <label class="form-check-label" for="show_at_homepage1"><?php echo e(__('Yes')); ?></label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="show_at_homepage" id="show_at_homepage0" value="0" <?php if($data->show_at_homepage ==0): ?> checked <?php endif; ?>>
                        <label class="form-check-label" for="show_at_homepage0"><?php echo e(__('No')); ?></label>
                    </div>
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label d-block"><?php echo e(__('Show At Menu')); ?> <span class="text-danger">*</span></label>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="show_on_menu" id="yes" value="1" <?php if($data->show_on_menu ==1): ?> checked <?php endif; ?>>
                        <label class="form-check-label" for="yes"><?php echo e(__('Yes')); ?></label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="show_on_menu" id="no" value="0" <?php if($data->show_on_menu ==0): ?> checked <?php endif; ?>>
                        <label class="form-check-label" for="no"><?php echo e(__('No')); ?></label>
                    </div>
                </div>

                <div class="col-md-12 mt-2">
                    <button class="btn btn-primary" type="submit"><?php echo e(__('Update Category')); ?></button>
                </div>
            </div>
        </form>
    </div>
</div>

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

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

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