<?php $__env->startSection('main-container'); ?>
<main id="main" class="main">
<?php echo $__env->make('cdn', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<div class="row page-titles mx-0">

    <div class="col-sm-6 p-md-0">

        <div class="breadcrumb-range-picker">

             <h3>Website Setting</h3>

        </div>

    </div>

    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">

         <a href="<?php echo e(route('brandmaster')); ?>" class="btns primary-btn ml-4">

            <span class="btn-icon-left" style="color: white">
                Back
            </span>

        </a>

    </div>

</div>



<div class="content-wrapper" style="margin-top: 15px">

    <?php echo $__env->make('flash_msg', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <div class="row">

        <div class="col-12">

            <div class="card">

                <div class="card-header">
                   Sign-up Banner <b>(Max 3)</b>
                </div>

                <div class="card-body">

                    <form action="<?php echo e(route('signup.slider.update')); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>

                        <div class="row">


                            <div class="form-group col-lg-6">

                                <label>Banner & Title <span class="text-danger">*</span></label>

                                <input type="file" class="form-control" name="app_sign_first_slider" placeholder="" id="app_sign_first_slider">

                                 <div class="mt-2">
                                    <?php if($slider && $slider->app_sign_first_slider): ?>
                                    <img src="<?php echo e(asset('/uploads/signup-slider/'.$slider->app_sign_first_slider)); ?>" id="app_sign_pre_first_slider" height="120" width="400"> <br>
                                    <a href="<?php echo e(route('remove.app_sign','one')); ?>" onclick="return confirm('Are you sure you want to delete this item?');" class="btn btn-danger mt-2">delete</a>
                                    <?php else: ?>
                                    <img id="app_sign_pre_first_slider" height="100">
                                    <?php endif; ?>
                                </div>

                            </div>
                            </div>


                        <div class="row">


                            <div class="form-group col-lg-6">

                                <label>Banner & Title <span class="text-danger">*</span></label>

                                <input type="file" class="form-control" name="app_sign_second_slider" placeholder="" id="app_sign_second_slider">

                                <div class="mt-2">

                                    <?php if($slider && $slider->app_sign_second_slider): ?>
                                    <img src="<?php echo e(asset('/uploads/signup-slider/'.$slider->app_sign_second_slider)); ?>" id="app_sign_pre_second_slider" height="120" width="400">  <br>
                                    <a href="<?php echo e(route('remove.app_sign','two')); ?>" onclick="return confirm('Are you sure you want to delete this item?');" class="btn btn-danger mt-2">delete</a>
                                    <?php else: ?>
                                    <img id="app_sign_pre_second_slider" height="100">
                                    <?php endif; ?>
                                </div>

                            </div>



                        </div>

                        <div class="row">


                            <div class="form-group col-lg-6">

                                <label>Banner & Title <span class="text-danger">*</span></label>

                                <input type="file" class="form-control" name="app_sign_third_slider" placeholder="" id="app_sign_third_slider">

                                 <div class="mt-2">

                                    <?php if($slider && $slider->app_sign_third_slider): ?>
                                    <img src="<?php echo e(asset('/uploads/signup-slider/'.$slider->app_sign_third_slider)); ?>" id="app_sign_pre_third_slider" height="120" width="400"><br>
                                    <a href="<?php echo e(route('remove.app_sign','three')); ?>" onclick="return confirm('Are you sure you want to delete this item?');" class="btn btn-danger mt-2">delete</a>
                                    <?php else: ?>
                                    <img id="app_sign_pre_third_slider" height="100">
                                    <?php endif; ?>

                                </div>

                            </div>


                        </div>

                        <div class="text-right">

                            <button type="submit" class="btns primary-btn">Update</button>

                        </div>

                    </form>

                </div>
            </div>

            </div>

        </div>

</div>
</main><!-- End #main -->
 <?php $__env->stopSection(); ?>

 <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

<script type="text/javascript">

$(document).ready(function (e) {


   $('#header_logo').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_header_logo').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

$(document).ready(function (e) {

   $('#footer_logo').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_footer_logo').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

$(document).ready(function (e) {

   $('#first_slider').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_first_slider').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

$(document).ready(function (e) {

   $('#second_slider').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_second_slider').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

   $(document).ready(function (e) {

       $('#third_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#pre_third_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


$(document).ready(function (e) {

   $('#app_first_slider').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#app_pre_first_slider').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

$(document).ready(function (e) {

   $('#app_second_slider').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#app_pre_second_slider').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

   $(document).ready(function (e) {

       $('#app_third_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#app_pre_third_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


   $(document).ready(function (e) {

   $('#first_home_banner').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_first_home_banner').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

$(document).ready(function (e) {

   $('#second_home_banner').change(function(){

    let reader = new FileReader();

    reader.onload = (e) => {

      $('#pre_second_home_banner').attr('src', e.target.result);
    }

    reader.readAsDataURL(this.files[0]);

   });

});

   $(document).ready(function (e) {

       $('#third_home_banner').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#pre_third_home_banner').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });



    $(document).ready(function (e) {

       $('#app_sign_first_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#app_sign_pre_first_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#app_sign_second_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#app_sign_pre_second_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#app_sign_third_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#app_sign_pre_third_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#app_sign_for_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#app_sign_pre_for_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });

</script>

<script>
    $(document).ready(function (e) {

       $('#vendor_app_sign_first_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#vendor_app_sign_pre_first_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#vendor_app_sign_second_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#vendor_app_sign_pre_second_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#vendor_app_sign_third_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#vendor_app_sign_pre_third_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });


    $(document).ready(function (e) {

       $('#vendor_app_sign_for_slider').change(function(){

        let reader = new FileReader();

        reader.onload = (e) => {

          $('#vendor_app_sign_pre_for_slider').attr('src', e.target.result);
        }

        reader.readAsDataURL(this.files[0]);

       });

    });
</script>


<?php echo $__env->make('frontend.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vinecork/public_html/webdev/Company/resources/views/setting/setting.blade.php ENDPATH**/ ?>