<!-- ============================================================== -->
<!-- Page Content -->
<!-- ============================================================== -->
<div id="page-wrapper">
    <div class="container-fluid">
        <div class="row bg-title">
            <div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
                <h4 class="page-title">Aktifitas</h4>
            </div>
            <div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /row -->
        <div class="row">
            <div class="col-md-12" style="padding-bottom:10px;">
                <a href="<?php echo base_url(); ?>aktifitas_guru/pilihan" class="btn btn-danger ">Aktifitas Pribadi</a>
                <a href="<?php echo base_url(); ?>aktifitas_guru/keseluruhan" class="btn btn-danger ">Halaman Aktifitas Keseluruan</a>
            </div>
            <div class="col-sm-12 data-tables">
                <div class="white-box">
                    <h3 class="box-title dataTable">Aktifitas Pribadi</h3>
                    <br>

                    <div class="table-responsive" style="padding-top:20px;">
                        <table class="table" id="datatables8">
                            <thead>
                                <tr>
                                    <th>No</th>
                                    <th>Tanggal </th>
                                    <th>Nama Aktifitas</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                $no = 1;
                                foreach ($aktifitas as $a) {
                                ?>
                                    <tr>
                                        <td><?php echo $no; ?></td>
                                        <td><?php echo date('d F Y H:m', strtotime($a->tanggal_pelanggaran)); ?></td>
                                        <td>berhasil menambahkan pelanggaran <?php echo $a->nama_pelanggaran; ?> dengan point <?php echo $a->point; ?> kepada siswa bernama <a href="<?php echo base_url(); ?>pelanggaran_siswa_guru/hasil_input/<?php echo $a->id_siswa; ?>"><?php echo $a->nama_siswa; ?></a> kelas <?php echo $a->nama_kelas; ?></td>

                                    </tr>
                                <?php $no++;
                                } ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </div>
    <!-- /.container-fluid -->
    <footer class="footer text-center"> &copy; <?= date('Y') ?> | Abid Taufiqur Rohman</footer>
</div>
