


        <!-- jQuery  -->
        <script src="<?php echo e(asset('admin-assets/js/jquery.min.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/bootstrap.min.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/detect.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/fastclick.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/jquery.slimscroll.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/jquery.blockUI.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/waves.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/wow.min.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/jquery.nicescroll.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/jquery.scrollTo.min.js')); ?>"></script>

 <!-- page specific js -->
        <script src="<?php echo e(asset('admin-assets/pages/jquery.fileuploads.init.js')); ?>"></script>
         <!-- Jquery filer js -->
        <script src="<?php echo e(asset('admin-assets/plugins/jquery.filer/js/jquery.filer.min.js')); ?>"></script>

        
        <!-- Plugins Js -->
        <script src="<?php echo e(asset('admin-assets/plugins/switchery/switchery.min.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js')); ?>"></script>
        <script type="text/javascript" src="<?php echo e(asset('admin-assets/plugins/multiselect/js/jquery.multi-select.js')); ?>"></script>
        <script type="text/javascript" src="<?php echo e(asset('admin-assets/plugins/jquery-quicksearch/jquery.quicksearch.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/select2/dist/js/select2.min.js')); ?>" type="text/javascript"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js')); ?>" type="text/javascript"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/bootstrap-inputmask/bootstrap-inputmask.min.js')); ?>" type="text/javascript"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/moment/moment.js')); ?>"></script>
     	<script src="<?php echo e(asset('admin-assets/plugins/timepicker/bootstrap-timepicker.min.js')); ?>"></script>
     	<script src="<?php echo e(asset('admin-assets/plugins/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js')); ?>"></script>
     	<script src="<?php echo e(asset('admin-assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js')); ?>"></script>
     	<script src="<?php echo e(asset('admin-assets/plugins/bootstrap-daterangepicker/daterangepicker.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js')); ?>" type="text/javascript"></script>

        <!-- App js -->
        <script src="<?php echo e(asset('admin-assets/js/jquery.core.js')); ?>"></script>
        <script src="<?php echo e(asset('admin-assets/js/jquery.app.js')); ?>"></script>

  <!--<script src="<?php echo e(asset('admin-assets/textarea-editor/wysihtml5-0.3.0.js')); ?>"></script>-->
  <!--<script src="<?php echo e(asset('admin-assets/textarea-editor/bootstrap-wysihtml5.js')); ?>"></script>-->
		  
		  
		<script src="https://cdn.ckeditor.com/ckeditor5/41.3.1/classic/ckeditor.js"></script>
		<script>
        ClassicEditor
    .create(document.querySelector('#editor'), {
        ckfinder: {
            uploadUrl: '<?php echo e(route('ckeditor.upload')); ?>?_token=<?php echo e(csrf_token()); ?>'
        },
        toolbar: {
            items: [
                'heading', '|',
                'bold', 'italic', 'link', 'bulletedList', 'numberedList', '|',
                'blockQuote', 'insertTable', 'imageUpload', 'mediaEmbed', '|',
                'undo', 'redo'
            ]
        },
        image: {
            resizeUnit: 'px',
            resizeOptions: [
                {
                    name: 'resizeImage:original',
                    label: 'Original',
                    value: null
                },
                {
                    name: 'resizeImage:50',
                    label: '50%',
                    value: '50'
                },
                {
                    name: 'resizeImage:75',
                    label: '75%',
                    value: '75'
                }
            ],
            toolbar: [
                'imageTextAlternative',
                'imageStyle:full',
                'imageStyle:side',
                '|',
                'resizeImage'
            ]
        }
    })
    .catch(error => {
        console.error(error);
    });


        </script>
    
        <script>
		
		    
            jQuery(document).ready(function() {

// 			$('.textarea').wysihtml5();

                //advance multiselect start
                $('#my_multi_select3').multiSelect({
                    selectableHeader: "<input type='text' class='form-control search-input' autocomplete='off' placeholder='search...'>",
                    selectionHeader: "<input type='text' class='form-control search-input' autocomplete='off' placeholder='search...'>",
                    afterInit: function (ms) {
                        var that = this,
                            $selectableSearch = that.$selectableUl.prev(),
                            $selectionSearch = that.$selectionUl.prev(),
                            selectableSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selectable:not(.ms-selected)',
                            selectionSearchString = '#' + that.$container.attr('id') + ' .ms-elem-selection.ms-selected';

                        that.qs1 = $selectableSearch.quicksearch(selectableSearchString)
                            .on('keydown', function (e) {
                                if (e.which === 40) {
                                    that.$selectableUl.focus();
                                    return false;
                                }
                            });

                        that.qs2 = $selectionSearch.quicksearch(selectionSearchString)
                            .on('keydown', function (e) {
                                if (e.which == 40) {
                                    that.$selectionUl.focus();
                                    return false;
                                }
                            });
                    },
                    afterSelect: function () {
                        this.qs1.cache();
                        this.qs2.cache();
                    },
                    afterDeselect: function () {
                        this.qs1.cache();
                        this.qs2.cache();
                    }
                });

                // Select2
                $(".select2").select2();

                $(".select2-limiting").select2({
				  placeholder: "Select a state"
				});

            });

            //Bootstrap-TouchSpin
            $(".vertical-spin").TouchSpin({
                verticalbuttons: true,
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom",
                verticalupclass: 'ti-plus',
                verticaldownclass: 'ti-minus'
            });
            var vspinTrue = $(".vertical-spin").TouchSpin({
                verticalbuttons: true
            });
            if (vspinTrue) {
                $('.vertical-spin').prev('.bootstrap-touchspin-prefix').remove();
            }

            $("input[name='demo1']").TouchSpin({
                min: 0,
                max: 100,
                step: 0.1,
                decimals: 2,
                boostat: 5,
                maxboostedstep: 10,
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom",
                postfix: '%'
            });
            $("input[name='demo2']").TouchSpin({
                min: -1000000000,
                max: 1000000000,
                stepinterval: 50,
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom",
                maxboostedstep: 10000000,
                prefix: '$'
            });
            $("input[name='demo3']").TouchSpin({
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom"
            });
            $("input[name='demo3_21']").TouchSpin({
                initval: 40,
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom"
            });
            $("input[name='demo3_22']").TouchSpin({
                initval: 40,
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom"
            });

            $("input[name='demo5']").TouchSpin({
                prefix: "pre",
                postfix: "post",
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom"
            });
            $("input[name='demo0']").TouchSpin({
                buttondown_class: "btn btn-custom",
                buttonup_class: "btn btn-custom"
            });

            // Time Picker
            jQuery('#timepicker').timepicker({
                defaultTIme : false
            });
            jQuery('#timepicker2').timepicker({
                showMeridian : false
            });
            jQuery('#timepicker3').timepicker({
                minuteStep : 15
            });

            //colorpicker start

            $('.colorpicker-default').colorpicker({
                format: 'hex'
            });
            $('.colorpicker-rgba').colorpicker();

            // Date Picker
            jQuery('#datepicker').datepicker();
            jQuery('#datepicker-autoclose').datepicker({
                autoclose: true,
                todayHighlight: true
            });
            jQuery('#datepicker-inline').datepicker();
            jQuery('#datepicker-multiple-date').datepicker({
                format: "mm/dd/yyyy",
                clearBtn: true,
                multidate: true,
                multidateSeparator: ","
            });
            jQuery('#date-range').datepicker({
                toggleActive: true
            });

            //Date range picker
            $('.input-daterange-datepicker').daterangepicker({
                buttonClasses: ['btn', 'btn-sm'],
                applyClass: 'btn-default',
                cancelClass: 'btn-primary'
            });
            $('.input-daterange-timepicker').daterangepicker({
                timePicker: true,
                format: 'MM/DD/YYYY h:mm A',
                timePickerIncrement: 30,
                timePicker12Hour: true,
                timePickerSeconds: false,
                buttonClasses: ['btn', 'btn-sm'],
                applyClass: 'btn-default',
                cancelClass: 'btn-primary'
            });
            $('.input-limit-datepicker').daterangepicker({
                format: 'MM/DD/YYYY',
                minDate: '06/01/2016',
                maxDate: '06/30/2016',
                buttonClasses: ['btn', 'btn-sm'],
                applyClass: 'btn-default',
                cancelClass: 'btn-primary',
                dateLimit: {
                    days: 6
                }
            });

            $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY'));

            $('#reportrange').daterangepicker({
                format: 'MM/DD/YYYY',
                startDate: moment().subtract(29, 'days'),
                endDate: moment(),
                minDate: '01/01/2016',
                maxDate: '12/31/2016',
                dateLimit: {
                    days: 60
                },
                showDropdowns: true,
                showWeekNumbers: true,
                timePicker: false,
                timePickerIncrement: 1,
                timePicker12Hour: true,
                ranges: {
                    'Today': [moment(), moment()],
                    'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
                    'Last 7 Days': [moment().subtract(6, 'days'), moment()],
                    'Last 30 Days': [moment().subtract(29, 'days'), moment()],
                    'This Month': [moment().startOf('month'), moment().endOf('month')],
                    'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
                },
                opens: 'left',
                drops: 'down',
                buttonClasses: ['btn', 'btn-sm'],
                applyClass: 'btn-success',
                cancelClass: 'btn-default',
                separator: ' to ',
                locale: {
                    applyLabel: 'Submit',
                    cancelLabel: 'Cancel',
                    fromLabel: 'From',
                    toLabel: 'To',
                    customRangeLabel: 'Custom',
                    daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
                    monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
                    firstDay: 1
                }
            }, function (start, end, label) {
                console.log(start.toISOString(), end.toISOString(), label);
                $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
            });

            //Bootstrap-MaxLength
            $('input#defaultconfig').maxlength()

            $('input#thresholdconfig').maxlength({
                threshold: 20
            });

            $('input#moreoptions').maxlength({
                alwaysShow: true,
                warningClass: "label label-success",
                limitReachedClass: "label label-danger"
            });

            $('input#alloptions').maxlength({
                alwaysShow: true,
                warningClass: "label label-success",
                limitReachedClass: "label label-danger",
                separator: ' out of ',
                preText: 'You typed ',
                postText: ' chars available.',
                validate: true
            });

            $('textarea#textarea').maxlength({
                alwaysShow: true
            });

            $('input#placement').maxlength({
                alwaysShow: true,
                placement: 'top-left'
            });
        </script>