<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <?= $this->session->flashdata('msg') ?>
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Hasil Perhitungan</h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="<?=base_url('dashboard')?>">Beranda</a></li>
                        <li class="breadcrumb-item active">Hasil Perhitungan</li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <div class="content">
        <div class="container-fluid">
            <div class="card">
                <!-- /.card-header -->
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-flush" id="datatable-basic">
                            <thead>
                                <tr>
                                    <th>#No</th>
                                    <th>Nama Balita</th>
                                    <th>Periode</th>
                                    <th>Hasil Rekomendasi</th>
                                    <th>Aksi</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $i = 1; foreach ($list_hasil as $row): ?>
                                <tr>
                                    <td><?= $i++ ?> </td>
                                    <td><?= $row->nama_balita ?></td>
                                    <td><?= $row->periode ?></td>
                                    <td><?= $row->hasil ?></td>
                                    <td>
                                        <a href="<?= base_url('hasil/cetakhasil/'.$row->id_perhitungan)?> "
                                            target="_blank"><button class="btn btn-sm bg-success text-white">Cetak
                                                Hasil</button></a>
                                        <a href="<?= base_url('hasil/detailhasil/'.$row->id_perhitungan)?> "><button
                                                class="btn btn-sm bg-info text-white">Detail
                                                Hasil</button></a>
                                    </td>
                                </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content -->

</div>
<!-- /.content-wrapper -->