<!DOCTYPE html>
<html>
<head>
    <style>
        body { font-family: DejaVu Sans, sans-serif; font-size: 12px; }
        table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        th, td { border: 1px solid #000; padding: 6px; text-align: center; }
        th { background-color: #f2f2f2; }
    </style>
</head>
<body>
    <h3 style="text-align:center;">Rekap Pengambilan ATK</h3>
    <table>
        <thead>
            <tr>
                <th>No</th>
                <th>Nama Peminjam</th>
                <th>Divisi</th>
                <th>Total Transaksi</th>
                <th>Total Item</th>
            </tr>
        </thead>
        <tbody>
            <?php if(!empty($rekap)): $no=1; foreach($rekap as $r): ?>
                <tr>
                    <td><?= $no++ ?></td>
                    <td><?= $r->atk_pengambilan_peminjam ?></td>
                    <td><?= $r->atk_pengambilan_divisi ?></td>
                    <td><?= $r->total_transaksi ?></td>
                    <td><?= $r->total_item ?></td>
                </tr>
            <?php endforeach; else: ?>
                <tr>
                    <td colspan="5">Belum ada data</td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>
</body>
</html>
