<?php
    $totalTransaksi = $ringkas->total_transaksi ?? 0;
    $totalPelanggan = $ringkas->total_pelanggan ?? 0;
?>

<section class="content-header mb-3">
    <h4 class="fw-bold">Dashboard</h4>
    <small class="text-muted">Ringkasan data transaksi</small>
</section>

<div class="page-content">
    <div class="row">

        
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card shadow-sm border-0">
                <div class="card-body d-flex align-items-center">
                    <div class="stats-icon blue me-3">
                        <i class="dripicons dripicons-cart"></i>
                    </div>
                    <div>
                        <h6 class="text-muted mb-1">Total Transaksi</h6>
                        <h4 class="fw-bold mb-0"><?php echo e($totalTransaksi); ?></h4>
                    </div>
                </div>
            </div>
        </div>

        
        <div class="col-xl-3 col-md-6 mb-4">
            <div class="card shadow-sm border-0">
                <div class="card-body d-flex align-items-center">
                    <div class="stats-icon green me-3">
                        <i class="dripicons dripicons-user-group"></i>
                    </div>
                    <div>
                        <h6 class="text-muted mb-1">Total Pelanggan</h6>
                        <h4 class="fw-bold mb-0"><?php echo e($totalPelanggan); ?></h4>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<?php /**PATH D:\WebsitePos\resources\views/beranda.blade.php ENDPATH**/ ?>