<footer class="sticky-footer bg-white">
  <div class="container my-auto">
    <div class="copyright text-center my-auto">
      <span>&copy; <?php echo date('Y'); ?> -
        <b><a href="https://conexaopro.com.br/" target="_blank">Conexão Soluções Corporativas</a></b>
      </span>
    </div>
  </div>
</footer>
<!-- /Footer -->
</div><!-- /Content wrapper -->


<!-- Scroll to top -->
<a class="scroll-to-top rounded" href="#page-top">
  <i class="fas fa-angle-up"></i>
</a>

<!-- General script -->
<script src="<?php echo base_url('public/assets/restricted/vendor/jquery/jquery.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/vendor/bootstrap/js/bootstrap.bundle.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/vendor/jquery-easing/jquery.easing.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/js/ruang-admin.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/toastr/toastr.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/toastr/toastr-custom.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/vendor/select2/dist/js/select2.min.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/vendor/ckeditor/ckeditor.js'); ?>"></script>
<script src="<?php echo base_url('public/assets/restricted/vendor/sweetalert/sweetalert.min.js'); ?>"></script>

<!-- Dynamic scripts -->
<?php if (isset($scripts)) : ?>
  <?php foreach ($scripts as $script) : ?>
    <script src="<?php echo base_url('public/assets/restricted/' . $script); ?>"></script>
  <?php endforeach; ?>
<?php endif; ?>

  <!-- Page level custom scripts -->
  <script>
    $(document).ready(function () {
      $('#dataTable').DataTable(); // ID From dataTable 
      $('#dataTableHover').DataTable(); // ID From dataTable with Hover
    });
  </script>

<?php if ($this->session->flashdata('success_message') != ""):?>]
  <script>
    toastr.success('<?php echo $this->session->flashdata('success_message'); ?>');
  </script>
<?php endif;?>

<?php if ($this->session->flashdata('upload_successful') != ""):?>]
  <script>
    swal({
    title: "Perfeito",
    text:  "Capítulo enviado com sucesso!",
    icon: "success",
    button: "OK",
    }).then((confirmed) => {
    setTimeout(function() {
      // Do something after 5 seconds
      location.reload();//reload page
    }, 2000);
})
  </script>
<?php endif;?>

<?php if ($this->session->flashdata('error_message') != ""):?>]
  <script>
    toastr.error('<?php echo $this->session->flashdata('error_message'); ?>');
  </script>
<?php endif;?>

</body>

</html>