<!-- This Is All JS Plugins used -->
<script src="<?php echo e(asset('assets/plugins/global/plugins.bundle.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/scripts.bundle.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/custom/datatables/datatables.bundle.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/summernote-lite.min.js')); ?>"></script>


<?php echo $__env->yieldContent('js'); ?>
<!-- Toastr -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<?php if(Session::has('success') || Session::has('error')): ?>
<script>
  toastr.options = {
    "progressBar" : true,
    "closeButton" : true,
    "positionClass" : "toast-top-left",
  }
</script>
<?php endif; ?>
<?php if(Session::has('success')): ?> <script>toastr.success("<?php echo e(Session::get('success')); ?>");</script> <?php endif; ?>
<?php if(Session::has('error')): ?> <script>toastr.error("<?php echo e(Session::get('error')); ?>");</script> <?php endif; ?>
<script>
  var KTDatatablesExample = function () {
    var table;
    var datatable;

    var initDatatable = function () {
      const tableRows = table.querySelectorAll('tbody tr');
      datatable = $(table).DataTable({
        "info": false,
        'order': [],
        'sort': true,
        'responsive': true,
        'pageLength': 10,
      });
    }
    var handleSearchDatatable = () => {
      const filterSearch = document.querySelector('[data-kt-filter="search"]');
      filterSearch.addEventListener('keyup', function (e) {
        datatable.search(e.target.value).draw();
      });
    }
    return {
      init: function () {
        table = document.querySelector('#kt_datatable_example');
        if (!table) {
          return;
        }
        initDatatable();
        handleSearchDatatable();
      }
    };
  }();

  KTUtil.onDOMContentLoaded(function () {
    KTDatatablesExample.init();
  });
</script>
<script>
$(document).ready(function () {
  $('[data-toggle="tooltip"]').tooltip();
  $('.loader').fadeOut(500, function () {
    $('.overlay-loader').fadeOut(function () {
      $(this).remove();
    });
  });
});

$(document).ready(function() {
  $('.summernote').summernote({
    height:300
  });
});
</script>
<?php /**PATH /home/tikpart/public_html/eyes.innovationstars.net/resources/views/admin/layouts/scripts.blade.php ENDPATH**/ ?>