<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hasil Generate - <?php echo e($batch->judul); ?></title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-50 min-h-screen p-8">
    <div class="max-w-4xl mx-auto bg-white p-8 rounded-xl shadow-md border border-gray-100">
        <div class="flex justify-between items-center mb-6 border-b pb-4">
            <h1 class="text-3xl font-bold text-gray-800">Hasil Generate: <?php echo e($batch->judul); ?></h1>
            <a href="<?php echo e(route('generator.index')); ?>" class="text-blue-600 hover:underline">&larr; Kembali ke Generator</a>
        </div>
        
        <div class="mb-6 bg-blue-50 p-4 rounded-lg text-blue-800">
            <strong>Info:</strong> URL download di bawah ini bersifat publik. Anda bisa langsung membagikan link tombol "Download PDF" ke peserta tanpa harus login.
        </div>

        <div class="overflow-x-auto">
            <table class="w-full text-left border-collapse">
                <thead>
                    <tr class="bg-gray-100 text-gray-700 uppercase text-sm">
                        <th class="p-4 border-b">No</th>
                        <th class="p-4 border-b">Nama Peserta</th>
                        <th class="p-4 border-b">Nomor Sertifikat</th>
                        <th class="p-4 border-b">Aksi</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $batch->pesertas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $peserta): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr class="hover:bg-gray-50 border-b">
                            <td class="p-4 text-gray-600"><?php echo e($index + 1); ?></td>
                            <td class="p-4 font-semibold text-gray-800"><?php echo e($peserta->nama); ?></td>
                            <td class="p-4 text-gray-600"><?php echo e($peserta->nomor_sertifikat); ?></td>
                            <td class="p-4">
                                <a href="<?php echo e(route('generator.download', $peserta->id)); ?>" target="_blank" class="inline-flex items-center bg-green-500 hover:bg-green-600 text-white text-sm font-medium py-2 px-4 rounded transition duration-150">
                                    <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
                                    Download PDF
                                </a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>
<?php /**PATH C:\laragon\www\sertifikat-generator\resources\views/generator/result.blade.php ENDPATH**/ ?>