<?php $__env->startSection('mainContent'); ?>
    <?php echo generateBreadcrumb(); ?>


    <section class="mb-20 student-details">
        <div class="container-fluid p-0">
            <div class="row">

                <div class="col-lg-12">
                    <div class="row ">
                        <div class="main-title pl-3 pt-10">
                            <h3 class="mb-30"><?php echo e(__('setting.Maintenance')); ?> <?php echo e(__('setting.Setting')); ?></h3>
                        </div>
                    </div>

                    <form class="form-horizontal" action="<?php echo e(route('setting.maintenance')); ?>" method="POST"
                          enctype="multipart/form-data">

                        <?php echo csrf_field(); ?>
                        <div class="white-box">

                            <div class="col-md-12 p-0">

                                <div class="row mb-30">
                                    <div class="col-md-12">

                                        <div class="row">
                                            <div class="col-xl-6">
                                                <div class="primary_input mb-25">
                                                    <label class="primary_input_label"
                                                           for=""><?php echo e(__('common.Title')); ?></label>
                                                    <input class="primary_input_field" placeholder="-" type="text"
                                                           name="maintenance_title"
                                                           value="<?php echo e($setting->maintenance_title); ?>">
                                                </div>
                                            </div>
                                            <div class="col-xl-6">
                                                <div class="primary_input mb-25">
                                                    <label class="primary_input_label"
                                                           for=""><?php echo e(__('common.Sub Title')); ?>  </label>
                                                    <input class="primary_input_field" placeholder="-" type="text"
                                                           name="maintenance_sub_title"
                                                           value="<?php echo e($setting->maintenance_sub_title); ?>">
                                                </div>
                                            </div>
                                            <div class="col-xl-2">
                                                <div class="primary_input mb-25">
                                                    <img height="70" class="w-100 imagePreview1"
                                                         src="<?php echo e(asset($setting->maintenance_banner)); ?>"
                                                         alt="">
                                                </div>
                                            </div>
                                            <div class="col-xl-4">
                                                <div class="primary_input mb-25">
                                                    <label class="primary_input_label"
                                                           for=""><?php echo e(__('frontendmanage.Maintenance Page Banner')); ?>

                                                    </label>
                                                    <div class="primary_file_uploader">
                                                        <input
                                                            class="primary-input  filePlaceholder <?php echo e(@$errors->has('course_page_banner') ? ' is-invalid' : ''); ?>"
                                                            type="text" id=""
                                                            placeholder="Browse file"
                                                            readonly="" <?php echo e($errors->has('course_page_banner') ? ' autofocus' : ''); ?>>
                                                        <button class="" type="button">
                                                            <label class="primary-btn small fix-gr-bg"
                                                                   for="file1"><?php echo e(__('common.Browse')); ?></label>
                                                            <input type="file" class="d-none fileUpload imgInput1"
                                                                   name="maintenance_banner" id="file1">
                                                        </button>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="col-xl-6 dripCheck">
                                                <div class="primary_input mb-25">
                                                    <div class="row">
                                                        <div class="col-md-12 mb-3">
                                                            <label class="primary_input_label"
                                                                   for="    "> <?php echo e(__('setting.Maintenance')); ?> <?php echo e(__('common.Mode')); ?></label>
                                                        </div>

                                                        <div class="col-md-6">
                                                            <div class="row">
                                                                <div class="col-md-4 mb-25">
                                                                    <label class="primary_checkbox d-flex mr-12"
                                                                           for="yes">
                                                                        <input type="radio"
                                                                               class="common-radio "
                                                                               id="yes"
                                                                               name="maintenance_status"
                                                                               <?php echo e($setting->maintenance_status==1?'checked':''); ?>

                                                                               value="1">
                                                                        <span
                                                                            class="checkmark mr-2"></span> <?php echo e(__('common.Yes')); ?>

                                                                    </label>
                                                                </div>
                                                                <div class="col-md-4 mb-25">
                                                                    <label class="primary_checkbox d-flex mr-12"
                                                                           for="no">
                                                                        <input type="radio"
                                                                               class="common-radio "
                                                                               id="no"
                                                                               name="maintenance_status"
                                                                               value="0" <?php echo e($setting->maintenance_status==0?'checked':''); ?>>
                                                                        <span
                                                                            class="checkmark mr-2"></span> <?php echo e(__('common.No')); ?>

                                                                    </label>
                                                                </div>
                                                            </div>


                                                        </div>

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

                                        </div>
                                    </div>

                                    <div class="col-md-7">
                                        <div class="row justify-content-center">

                                            <?php if(session()->has('message-success')): ?>
                                                <p class=" text-success">
                                                    <?php echo e(session()->get('message-success')); ?>

                                                </p>
                                            <?php elseif(session()->has('message-danger')): ?>
                                                <p class=" text-danger">
                                                    <?php echo e(session()->get('message-danger')); ?>

                                                </p>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row mt-40">
                                <div class="col-lg-12 text-center">
                                    <button class="primary-btn fix-gr-bg" data-toggle="tooltip"
                                    >
                                        <span class="ti-check"></span>
                                        <?php echo e(__('common.Update')); ?>

                                    </button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
    <script>
        function readURL1(input) {
            if (input.files && input.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    $(".imagePreview1").attr('src', e.target.result);
                }
                reader.readAsDataURL(input.files[0]); // convert to base64 string
            }
        }

        $(".imgInput1").change(function () {

            readURL1(this);
        });
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('backend.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/penastud/public_html/lmspena/Modules/Setting/Resources/views/maintenance.blade.php ENDPATH**/ ?>