<!-- Footer -->
<footer id="page-footer" class="bg-body-light">
        <div class="content py-0">
          <div class="row fs-sm">
            <div class="col-sm-6 order-sm-2 mb-1 mb-sm-0 text-center text-sm-end fw-semibold">
              <!--Crafted with <i class="fa fa-heart text-danger"></i> by <a class="fw-semibold" href="https://pixelcave.com" target="_blank">pixelcave</a>-->
              Powerd by ORIONUX(PVT)Ltd.
            </div>
            <div class="col-sm-6 order-sm-1 text-center text-sm-start fw-semibold">
              <!--<a class="fw-semibold" href="https://pixelcave.com/products/dashmix" target="_blank">Dashmix 5.9</a> &copy; <span data-toggle="year-copy"></span>-->
             Copyright © 2024
            </div>
          </div>
        </div>
      </footer>
      <!-- END Footer -->
    </div>
    <!-- END Page Container -->

    <!--
      Dashmix JS

      Core libraries and functionality
      webpack is putting everything together at assets/_js/main/app.js
    -->
    <script src="<?php echo e(asset('assets/js/dashmix.app.min.js')); ?>"></script>

<!-- jQuery (required for DataTables plugin) -->
<script src="<?php echo e(asset('assets/js/lib/jquery.min.js')); ?>"></script>

<!-- Page JS Plugins -->
<!-- <script src="<?php echo e(asset('assets/js/plugins/datatables/dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-bs5/js/dataTables.bootstrap5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-responsive-bs5/js/responsive.bootstrap5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons/dataTables.buttons.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons-bs5/js/buttons.bootstrap5.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons-jszip/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons-pdfmake/pdfmake.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons-pdfmake/vfs_fonts.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons/buttons.print.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/datatables-buttons/buttons.html5.min.js')); ?>"></script> -->
<script src="<?php echo e(asset('assets/js/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/select2/js/select2.full.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/ion-rangeslider/js/ion.rangeSlider.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/jquery.maskedinput/jquery.maskedinput.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/dropzone/min/dropzone.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/pwstrength-bootstrap/pwstrength-bootstrap.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/flatpickr/flatpickr.min.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/plugins/simplemde/simplemde.min.js')); ?>"></script>
<!-- Page JS Code -->
<!-- <script src="<?php echo e(asset('assets/js/pages/be_tables_datatables.min.js')); ?>"></script> -->

<script>Dashmix.helpersOnLoad(['js-flatpickr', 'jq-datepicker', 'jq-maxlength', 'jq-select2', 'jq-rangeslider', 'jq-masked-inputs', 'jq-pw-strength', 'js-simplemde']);</script>


<script src="https://cdn.datatables.net/2.2.2/js/dataTables.js"></script>
<script src="https://cdn.datatables.net/responsive/3.0.4/js/dataTables.responsive.js"></script>
<script src="https://cdn.datatables.net/responsive/3.0.4/js/responsive.dataTables.js"></script>
<script src="https://cdn.datatables.net/buttons/3.2.2/js/dataTables.buttons.js"></script>
<script src="https://cdn.datatables.net/buttons/3.2.2/js/buttons.dataTables.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/3.2.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/3.2.2/js/buttons.print.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/parsleyjs@2.9.2/dist/parsley.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/parsleyjs@2.9.2/src/parsley.min.css">
  </body>
</html>

<script>
  document.addEventListener("DOMContentLoaded", function() {
    document.querySelectorAll('.custom-datatable').forEach(function(table) {
      new DataTable(table, {
       
        order: [],
        layout: {
          top1Start: {
            buttons: [ 'csv', 'excel']
          }
        }
      });
    });
    document.querySelectorAll('.custom-datatable-no-export').forEach(function(table) {
      new DataTable(table, {
        responsive: true,
        order: [],

      });
    });
  });
$(".expense-category").select2({
    dropdownParent: $("#addExpenses"),
    tags: true
});
$(".revenue-category").select2({
    dropdownParent: $("#addRevenue"),
    tags: true
});
</script>
<style>
  .shift-floating-button{
    position: fixed;
    bottom: 60px;
    right: 10px;
  }
</style>

<div class="shift-floating-button">


</div>

<script>
document.getElementById('add-expense-form').addEventListener('submit', function (e) {

    document.getElementById('add-expense-button').disabled = true;

    document.getElementById('add-expense-button').innerText = 'Processing...';

});
document.getElementById('add-revenue-form').addEventListener('submit', function (e) {

    document.getElementById('add-revenue-button').disabled = true;

    document.getElementById('add-revenue-button').innerText = 'Processing...';

});
</script>

<?php if(Session::has('expense_message')){ ?>
      <script>
          window.onload = function() {
              var expense_id = "<?php echo e(Session::get('expense_id')); ?>";

              setTimeout(function() {
                  window.open('<?php echo e(url('admin/expense-bill')); ?>/'+expense_id+'', '_blank');
              }, 1); 
              
          };
      </script> 
<?php } ?>

<script>
  $('#shiftOutBtn').on('click', function(e) {
    e.preventDefault(); 

    const url = $(this).data('url');
    $.ajax({
        url: "<?php echo e(url('admin/shift-out-validate')); ?>", 
        type: "POST",
        data: {
            _token: "<?php echo e(csrf_token()); ?>",
        },
        success: function (response) {
          if (response.status === "success") {
          window.location.href = url; 
          } else {
            alert('Plese close all pending orders before checkout');
          }
        },
        error: function (xhr) {
            let errors = xhr.responseJSON.errors;
            if (errors) {
                let errorMessages = "";
                $.each(errors, function (key, value) {
                    errorMessages += value[0] + "\n";
                });
                alert(errorMessages);
            }
        }
    });

  });
</script><?php /**PATH /home/u446954234/domains/orionerp.xyz/public_html/napaskitchen2/Modules/Admin/resources/views/layouts/footer.blade.php ENDPATH**/ ?>