<div class="row layout-top-spacing">
    <div class="col-xl-3 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
        <div class="card component-card_7" style="width: auto;">
            <div class="card-body">
                <h4 class="card-text">Target Storting
                    <br><?= $this->mycustom->hariIndo(date('l', strtotime(date('Y-m-d')))) ?>,
                    <?= date('d', strtotime(date('Y-m-d'))) ?>
                    <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d')))) ?>
                    <?= date('Y', strtotime(date('Y-m-d'))) ?>
                </h4>
                <h2 class="card-text">
                    <?= number_format(($target_harian['saldo'] ?? 0), 0, ',', '.') ?>,-
                </h2>
            </div>
        </div>
    </div>
    <div class="col-xl-3 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
        <div class="card component-card_7" style="width: auto;">
            <div class="card-body">
                <h4 class="card-text">Jumlah Storting
                    <br><?= $this->mycustom->hariIndo(date('l', strtotime(date('Y-m-d')))) ?>,
                    <?= date('d', strtotime(date('Y-m-d'))) ?>
                    <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d')))) ?>
                    <?= date('Y', strtotime(date('Y-m-d'))) ?>
                </h4>
                <h2 class="card-text">
                    <?= number_format(($masuk_harian['saldo'] ?? 0), 0, ',', '.') ?>,-
                </h2>
            </div>
        </div>
    </div>
    <div class="col-xl-3 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
        <div class="card component-card_7" style="width: auto;">
            <div class="card-body">
                <h4 class="card-text">Target Storting <br>
                    <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d')))) ?>
                    <?= date('Y', strtotime(date('Y-m-d'))) ?></h4>
                <h2 class="card-text">
                    <?= number_format(($target_bulanan['saldo'] ?? 0), 0, ',', '.') ?>,-
                </h2>
            </div>
        </div>
    </div>
    <div class="col-xl-3 col-lg-12 col-md-12 col-sm-12 col-12 layout-spacing">
        <div class="card component-card_7" style="width: auto;">
            <div class="card-body">
                <h4 class="card-text">Jumlah Storting <br>
                    <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d')))) ?>
                    <?= date('Y', strtotime(date('Y-m-d'))) ?></h4>
                <h2 class="card-text">
                    <?= number_format(($masuk_bulanan ?? 0), 0, ',', '.') ?>,-
                </h2>
            </div>
        </div>
    </div>
</div>
<div class="layout-spacing">
    <div class="card component-card_7" style="width: auto;">
        <div class="card-body">
            <h4 class="card-text">Skor KPI Marketing <br>
                <?= $this->mycustom->bulanIndo(date('m', strtotime(date('Y-m-d')))) ?>
                <?= date('Y', strtotime(date('Y-m-d'))) ?></h4>
            <h2 class="card-text">
                <?= ($data_kpi['nilai_angka'] ?? 0) ?> ( <?= ($data_kpi['nilai_huruf'] ?? 0) ?> )</h2>
            <?php if ($data_kpi != null) : ?>
                <a href="<?= base_url('marketing/kpi/detail_kpi/' . $this->encrypt->encode($data_kpi['id'])) ?>">Selengkapnya
                    >>>>></a>
            <?php endif; ?>
        </div>
    </div>
</div>