<script src="<?= base_url(); ?>resource/js/jquery.js"></script>
<script src="<?= base_url(); ?>resource/js/bootstrap.min.js"></script>
<script>
    $('.carousel').carousel({
        interval: 5000
    })
</script>