<!DOCTYPE html>
<html>
<head>
    <title>Data Pengunjung</title>
    <style>
        table {
            width: 90%;
            margin: 30px auto;
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid #ddd;
            padding: 10px;
        }

        th {
            background: #243b8f;
            color: white;
        }
    </style>
</head>

<body>

<h2 style="text-align:center">
    Riwayat Data Pengunjung
</h2>


<table>

<tr>
    <th>No</th>
    <th>Nama</th>
    <th>Instansi</th>
    <th>Keperluan</th>
    <th>Tanggal</th>
</tr>


<?php $__currentLoopData = $tamu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<tr>
    <td><?php echo e($loop->iteration); ?></td>
    <td><?php echo e($data->nama); ?></td>
    <td><?php echo e($data->instansi); ?></td>
    <td><?php echo e($data->keperluan); ?></td>
    <td><?php echo e($data->created_at); ?></td>
</tr>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


</table>


</body>
</html><?php /**PATH C:\Tamu_Track\resources\views/data-pengunjung.blade.php ENDPATH**/ ?>