<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="https://bootswatch.com/4/litera/bootstrap.min.css">
    <style>
        .alert-error {
            background-color: #d9534f;
        }
    </style>
</head>

<body>
    <nav class="navbar navbar-expand-lg navbar-light bg-light"><a class="navbar-brand" href="/elearning">E-Learning</a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav ml-auto">
                <li class="nav-item">
                    <a href="#" class="nav-link">Akun</a>
                </li>
                <li>
                    <a href="<?php echo base_url().'elearning/logout'; ?>" class="nav-link">Logout</a>
                </li>
            </ul>
        </div>
    </nav>
    <div class="container">
        <div class="my-5 row mx-auto">
            <div class="col-sm"></div>
            <div class="col-sm-9 col-md-8 col-lg-7">
                <h3 class="mb-3 text-center">Daftar Mata Pelajaran</h3>
                <div id="matpel-list">
                <?php foreach($mapel as $m): ?>
                    <a href="<?php echo base_url().'elearning/pelajaran/'.strtolower($m); ?>" class="list-group-item list-group-item-action">
                        <?php echo $m; ?>
                    </a>
                <?php endforeach; ?>
                </div>
            </div>
        <div class="col-sm"></div>
        </div>
    </div>
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
    <footer class="text-center fixed-bottom">
        <p>&copy; ppl-6</p>
    </footer>
</body>

</html>