<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Riwayat Peminjaman Admin - <?php echo e(config('app.name')); ?></title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-slate-50 text-slate-900">
    <main class="max-w-6xl mx-auto px-4 py-8">
        <div class="mb-6">
            <h1 class="text-2xl font-bold">Riwayat Peminjaman Admin</h1>
            <p class="text-sm text-slate-500">Seluruh histori peminjaman untuk sekretariat.</p>
        </div>

        <div class="bg-white border border-slate-200 rounded-xl overflow-hidden">
            <table class="min-w-full text-sm">
                <thead class="bg-slate-100">
                    <tr>
                        <th class="px-4 py-3 text-left">Peminjam</th>
                        <th class="px-4 py-3 text-left">Barang</th>
                        <th class="px-4 py-3 text-left">Jumlah</th>
                        <th class="px-4 py-3 text-left">Status</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $loanHistory; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr class="border-t border-slate-100">
                            <td class="px-4 py-3"><?php echo e($history->user->name ?? 'N/A'); ?></td>
                            <td class="px-4 py-3"><?php echo e($history->item->nama ?? 'N/A'); ?></td>
                            <td class="px-4 py-3"><?php echo e($history->jumlah); ?></td>
                            <td class="px-4 py-3"><?php echo e($history->status); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="4" class="px-4 py-8 text-center text-slate-500">Belum ada riwayat.</td>
                        </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>

        <div class="mt-6">
            <?php echo e($loanHistory->links()); ?>

        </div>
    </main>
</body>
</html>
<?php /**PATH /Users/Afifudin/Downloads/Laravel 15-04-26 3/production/resources/views/history/secretariat_index.blade.php ENDPATH**/ ?>