
                <!-- Footer Start -->
               
                <!-- end Footer -->

            </div>

            <!-- ============================================================== -->
            <!-- End Page content -->
            <!-- ============================================================== -->
</div>


        <!-- END wrapper -->

        <!-- Vendor js -->
        <script src="<?= base_url();?>assets/js/vendor.min.js"></script>
        
        <!-- Datatable plugin js -->
        <script src="<?= base_url();?>assets/libs/datatables/jquery.dataTables.min.js"></script>
        <script src="<?= base_url();?>assets/libs/datatables/dataTables.bootstrap4.min.js"></script>

        <script src="<?= base_url();?>assets/libs/datatables/dataTables.responsive.min.js"></script>
        <script src="<?= base_url();?>assets/libs/datatables/responsive.bootstrap4.min.js"></script>

        <script src="<?= base_url();?>assets/libs/datatables/dataTables.buttons.min.js"></script>
        <script src="<?= base_url();?>assets/libs/datatables/buttons.bootstrap4.min.js"></script>

        <script src="<?= base_url();?>assets/libs/jszip/jszip.min.js"></script>
        <script src="<?= base_url();?>assets/libs/pdfmake/pdfmake.min.js"></script>
        <script src="<?= base_url();?>assets/libs/pdfmake/vfs_fonts.js"></script>

        <script src="<?= base_url();?>assets/libs/datatables/buttons.html5.min.js"></script>
        <script src="<?= base_url();?>assets/libs/datatables/buttons.print.min.js"></script>

        <script src="<?= base_url();?>assets/libs/datatables/dataTables.keyTable.min.js"></script>
        <script src="<?= base_url();?>assets/libs/datatables/dataTables.select.min.js"></script>

        <!-- Datatables init -->
        <script src="<?= base_url();?>assets/js/pages/datatables.init.js"></script>
        
        <!-- start Datatable plugin js -->
        <!--<script src="<?= ('https://coderthemes.com/uplon/layouts/vertical/assets/');?>libs/jszip/jszip.min.js"></script>-->
        <!--<script src="<?= ('https://coderthemes.com/uplon/layouts/vertical/assets/');?>libs/pdfmake/pdfmake.min.js"></script>-->
        <!--<script src="<?= ('https://coderthemes.com/uplon/layouts/vertical/assets/');?>libs/pdfmake/vfs_fonts.js"></script>-->
        <!--<script src="<?= ('https://coderthemes.com/uplon/layouts/vertical/assets/');?>libs/datatables/buttons.html5.min.js"></script>-->
        <!--<script src="<?= ('https://coderthemes.com/uplon/layouts/vertical/assets/');?>libs/datatables/buttons.print.min.js"></script>-->
        <!--<script src="<?= ('https://cdn.datatables.net/buttons/1.7.1/js/buttons.colVis.min.js');?>"></script>-->
        
        <!--<script src="<?= ('https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js');?>"></script>-->
        <!--<script src="<?= ('https://cdn.datatables.net/buttons/1.7.1/js/dataTables.buttons.min.js');?>"></script>-->
        <!--<script src="<?= ('https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js');?>"></script>-->
        <!--<script src="<?= ('https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js');?>"></script>-->
        <!--<script src="<?= ('https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js');?>"></script>-->
        <!--<script src="<?= ('https://cdn.datatables.net/buttons/1.7.1/js/buttons.html5.min.js');?>"></script>-->
        <!--<script src="<?= ('https://cdn.datatables.net/buttons/1.7.1/js/buttons.colVis.min.js');?>"></script>-->
        <!--<script src="<?= ('https://code.jquery.com/jquery-3.5.1.js');?>"></script>-->
        <!--end Datatable plugin js-->
        

        <!-- Sweet Alerts js -->
        <script src="<?= base_url();?>assets/libs/sweetalert2/sweetalert2.min.js"></script>

        <!-- Sweet alert init js-->
        <script src="<?= base_url();?>assets/js/pages/sweet-alerts.init.js"></script>
        
        
        <!-- Modal-Effect -->
        <script src="<?= base_url();?>assets/libs/custombox/custombox.min.js"></script>
        
        <!--jquery.mask-->
        <script src="<?= base_url();?>assets/libs/jquery-mask-plugin/jquery.mask.min.js"></script>
        <script src="<?= base_url();?>assets/libs/autonumeric/autoNumeric.min.js"></script>
        
        <!--multi select-->
        <script src="<?=base_url();?>assets/libs/bootstrap-tagsinput/bootstrap-tagsinput.min.js"></script>
        <script src="<?=base_url();?>assets/libs/switchery/switchery.min.js"></script>
        <script src="<?=base_url();?>assets/libs/multiselect/bootstrap-multiselect.js"></script>
        <script src="<?=base_url();?>assets/libs/jquery-quicksearch/jquery.quicksearch.min.js"></script>
        <script src="<?=base_url();?>assets/libs/select2/select2.min.js"></script>
        <script src="<?=base_url();?>assets/libs/jquery-mockjax/jquery.mockjax.min.js"></script>
        <script src="<?=base_url();?>assets/libs/autocomplete/jquery.autocomplete.min.js"></script>
        <script src="<?=base_url();?>assets/libs/bootstrap-maxlength/bootstrap-maxlength.min.js"></script>
        <!-- form advanced init -->
        <!--<script src="<?=base_url();?>assets/js/pages/form-advanced.init.js"></script>-->
        
        
        <!--Morris Chart-->
        <!--<script src="<?= base_url();?>assets/libs/morris-js/morris.min.js"></script>-->
        <!--<script src="<?= base_url();?>assets/libs/raphael/raphael.min.js"></script>-->

        <!-- Dashboard init js-->
        <!--<script src="<?= base_url();?>assets/js/pages/dashboard.init.js"></script>-->

        <!-- App js -->
        <script src="<?= base_url();?>assets/js/app.min.js"></script>
        
        
        <!-- Plugins js -->
        <script src="<?= base_url();?>assets/libs/dropify/dropify.min.js"></script>

        <!-- Init js-->
        <script src="<?= base_url();?>assets/js/pages/form-fileuploads.init.js"></script>

        
        <script src="<?= base_url();?>assets/libs/bootstrap-colorpicker/bootstrap-colorpicker.min.js"></script>
        
        
        
        <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css" rel="stylesheet">
        <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
        
        <!-- Init js-->
        <!--<script src="<?= base_url();?>assets/js/pages/form-pickers.init.js"></script>-->
                
        <script>
            $(document).ready(function(){
                setInterval(function(){
                    var ipaddress = 'myip';
                    $.post( "<?php echo base_url();?>master/dashboard/getPendingOrder ", { ipaddress: ipaddress },
                        function(data){
                            if(data==0){
                                $("#pending_order_count small").html('');
                            } else{
                                $("#pending_order_count small").html('<span class="noti-icon-badge"></span>');
                            }
                            $("##pending_order_count2 span").html(data); 
                        } );
                }, 1000);
            })
        </script>
        
        <script>
            $("#default-colorpicker").colorpicker({format:"hex"})
        </script>
        
        <script>
            $('textarea#summernote').summernote({
                placeholder: 'Design Content At Yourself.',
                tabsize: 2,
                height: 200,
          toolbar: [
                ['style', ['style']],
                ['font', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']],
                ['fontname', ['fontname']],
                ['fontsize', ['fontsize']],
                ['color', ['color']],
                ['para', ['ul', 'ol', 'paragraph']],
                ['height', ['height']],
                ['table', ['table']],
                ['insert', ['link', 'picture', 'hr']],
                ['view', ['fullscreen', 'codeview']],
                ['help', ['help']]
              ],
              });
        </script>
        
<?php 
    $message = $this->session->flashdata('error');
    if (isset($message)) {
        ?>
        <script>                              
            Swal.fire({
				title: "ERROR!",
				html: '<?=$message;?><br>',
				type: "error",
				showConfirmButton: true,
				timer: 5000
            })
        </script> 
 <?php
    }
    
    $success = $this->session->flashdata('success');
    if (isset($success)) {
        ?>
        
        <script>                              
            Swal.fire({
				title: "SUCCESS!",
				html: '<?=$success;?><br>',
				type: "success",
				showConfirmButton: true,
				timer: 5000
            })
        </script> 
        <?php
    }
  ?>
  
        
    </body>

</html>