<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">Saldo Awal <br> Koperasi</h4>
                <h3 class="card-text">
                    <?= number_format(($ad_koperasi['ad_koperasi'] ?? 0), 0, ',', '.') ?>,-

                </h3>
            </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">Saldo Masuk <br> Keseluruhan</h4>
                <h2 class="card-text">
                    <?= number_format(($saldo_masuk['saldo_masuk'] ?? 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">Saldo Keluar <br> Keseluruhan</h4>
                <h2 class="card-text">
                    <?= number_format(($saldo_keluar['saldo_keluar'] ?? 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">Saldo Akhir <br>Keseluruhan</h4>
                <h3 class="card-text">
                    <?= number_format(
                        (
                            ($ad_koperasi['ad_koperasi'] ?? 0) +
                            ($saldo_masuk['saldo_masuk'] ?? 0) -
                            ($saldo_keluar['saldo_keluar'] ?? 0)
                        ),
                        0,
                        ',',
                        '.'
                    ) ?>,-
                </h3>
            </div>
        </div>
    </div>
</div>