<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="faq">Questions?</a></li>
                        <li><a class="footer-links footer-about" href="about">Meet Nooreed</a></li>
                        <li><a class="footer-links footer-privacy" href="privacy">Privacy</a></li>
                        <li><a class="footer-links footer-terms" href="terms">The legal stuff</a></li>
                        <li><a class="footer-links footer-contact contact" href="contact">Get in touch</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</footer>

<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/contact.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($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>
