<?php
    foreach($sales_summary AS $summary){
        // $arr_rgb = $this->fungsi->hex2rgb($summary->warna_tahapan);
?>
        <div class="summary-card opacity-25 mr-1 p-1" 
            style=
                "background-color:<?= $summary->warna_tahapan ?>;
                color:<?= $summary->warna_text_tahapan ?> !important;
            "
        >
                    <div class="row d-flex">
                        <div class="col-1"></div>
                        <div class="col-7 text-center pl-0 pr-0" style="text-wrap:wrap">
                            <?= $summary->nama_tahapan ?>
                        </div>
                        <div class="col-3 text-right pl-0 pr-0" style="padding-right:5px !important;">
                            <span class="badge-count" style="color:#000;">
                                <?= $summary->total_layanan ?>
                            </span>
                        </div>
                    </div>
                    <div class="row mt-2">
                        <div class="col-12 text-center font-weight-bold align-bottom">
                            <span style="font-size:16px"> <?= number_format($summary->total_nominal, 0, ",", ".") ?> </span>
                        </div>
                    </div>
        </div>
<?php
    }
?>