<div class="row layout-spacing">
    <div class="col-lg-12">
        <div class="statbox widget box box-shadow">
            <div class="widget-content widget-content-area">
                <table id="style-10" class="table style-10  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">No</th>
                            <th class="text-center">Tanggal Review</th>
                            <th class="text-center">Nama Konsumen</th>
                            <th class="text-center">Nomor HP</th>
                            <th class="text-center">Rating</th>
                            <th class="text-center">Kritik dan Saran</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $no = 1; ?>
                        <?php foreach ($reviews as $Reviews) : ?>
                        <tr>
                            <td class="text-center">
                                <?= $no ?>
                            </td>
                            <td class="text-left">
                                <?= $this->mycustom->hariIndo(date('l', strtotime($Reviews->tgl_review))) ?>,
                                <?= date('d', strtotime($Reviews->tgl_review))  ?>
                                <?= $this->mycustom->bulanIndo(date('m', strtotime($Reviews->tgl_review)))  ?>
                                <?= date('Y', strtotime($Reviews->tgl_review))  ?>
                            </td>
                            <td class="text-left">
                                <?= $Reviews->nm_konsumen ?>
                            </td>
                            <td class="text-left">
                                <?= $Reviews->hp_konsumen ?>
                            </td>
                            <td class="text-center">
                                <?php if ($Reviews->rating == 1) : ?>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span> ( <?= $Reviews->rating ?> )
                                <?php elseif ($Reviews->rating == 2) : ?>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span> ( <?= $Reviews->rating ?> )
                                <?php elseif ($Reviews->rating == 3) : ?>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star"></span>
                                <span class="fa fa-star"></span> ( <?= $Reviews->rating ?> )
                                <?php elseif ($Reviews->rating == 4) : ?>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star"></span> ( <?= $Reviews->rating ?> )
                                <?php elseif ($Reviews->rating == 5) : ?>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span>
                                <span class="fa fa-star checked"></span> ( <?= $Reviews->rating ?> )
                                <?php endif;
                                    ?>
                            </td>
                            <td class="text-left">
                                <?= $Reviews->kritik_saran ?>
                            </td>
                        </tr>
                        <?php $no++; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>