<h4>🏆 Ranking Kasir Bulan Ini</h4>

<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>#</th>
            <th>Nama Kasir</th>
            <th>Total Omset</th>
            <th>Total Shift</th>
        </tr>
    </thead>
    <tbody>
        <?php 
        $no = 1; 
        $badge = ['🥇','🥈','🥉']; 
        foreach ($ranking as $r): 
        ?>
        <tr>
            <td><?= $badge[$no-1] ?? $no ?></td>
            <td><?= $r['nama_kasir'] ?></td>
            <td>Rp <?= number_format($r['total_omset'],0,',','.') ?></td>
            <td><?= $r['total_shift'] ?></td>
        </tr>
        <?php 
        $no++; 
        endforeach; 
        ?>
    </tbody>
</table>
