<footer class="footer">
    <div class="navbar navbar-inverse navbar-fixed-bottom- footer-navbar">
        <div class="container-fluid">
            <div id="footer-body">
                <div class="col-md-offset-1 col-md-2">
                    <ul class="nav navbar-nav">
                        <li><a class="footer-info" href="#">Copyright <?=date("Y");?> Nooreed</a></li>
                    </ul>
                </div>
                <div class="col-md-offset-1 col-md-8">
                    <ul class="nav navbar-nav">
                        <li><a class="footer-links footer-faq" href="<?php echo base_url(); ?>faq">FAQ</a></li>
                        <li><a class="footer-links footer-about" href="<?php echo base_url(); ?>about">ABOUT US</a></li>
                        <li><a class="footer-links footer-privacy" href="<?php echo base_url(); ?>privacy">PRIVACY</a></li>
                        <li><a class="footer-links footer-terms" href="<?php echo base_url(); ?>terms">TERMS & USE</a></li>
                        <li><a class="footer-links footer-contact" href="<?php echo base_url(); ?>contact">CONTACT US</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</footer>
<span id="scrollUpArrow" class="glyphicon glyphicon-chevron-up"></span>

<script src="//code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/bootstrap/bootstrap.min.js" type="text/javascript"></script>

<script src="<?php echo base_url() ?>/dist/js/application/video-listing.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/video-playing.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/category-select.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/contact.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/faq.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/login.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/application/search.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>/dist/js/sweetalert.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/dist/css/sweetalert.css">

<?php

if(!empty($modals)){
    foreach ($modals as $modal) {
        echo $modal;
    }
}

if(!empty($alerts)){
    ?>
    <script>
        $(function() {
            <?php
            foreach ($alerts as $alert) {
            ?>
            swal("<?php echo $alert['title']; ?>", "<?php echo $alert['text']; ?>", "<?php echo $alert['type']; ?>")
            <?php
            echo "\r\n";
            }
            foreach ($alerts as $alert) {
                if(isset($alert['redirect'])){
                    echo "window.location.replace('{$alert['redirect']}');";
                }
            }
            ?>
        });

    </script>
    <?php
}
?>
</body>
</html>
