<?php
    if(!empty($activity['total_semua_activity'])){
?>
        <?php foreach($activity['data'] AS $value){ ?>
            <div class="row d-flex justify-content-center align-items-center" style="font-size:13px; margin-bottom:10px;">
                <div class="col-2 p-0">
                    <span class="badge badge-pills w-75" style="height: 10px !important; background-color:<?= $value['warna'] ?>;"> </span>
                </div>
                <div class="col-2 p-0">
                    <span class="font-weight-bold"><?= $value['total_activity'] ?></span>
                </div>
                <div class="col-8 p-0">
                    <span><?= $value['jenis_activity'] ?></span>
                </div>
            </div>
        <?php }?>
<?php }else{ ?>
        <div class="col-md-12 text-center mb-1 mt-2">
            <h5 class="text-light">Tidak Ada Aktivitas
        </h5></div>
<?php }?>