<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo e($title); ?></title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Arial', 'Helvetica', sans-serif;
            font-size: 11px;
            line-height: 1.4;
            color: #333;
            padding: 15px;
        }
        
        .header {
            text-align: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #2A5C8A;
        }
        
        .header h1 {
            font-size: 20px;
            color: #2A5C8A;
        }
        
        .header p {
            color: #666;
            font-size: 10px;
        }
        
        .section-title {
            font-size: 14px;
            font-weight: bold;
            color: #2A5C8A;
            margin-bottom: 10px;
            padding-bottom: 5px;
            border-bottom: 1px solid #ddd;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 15px;
            font-size: 10px;
        }
        
        table th {
            background: #2A5C8A;
            color: white;
            padding: 6px;
            text-align: left;
        }
        
        table td {
            padding: 6px;
            border-bottom: 1px solid #ddd;
        }
        
        .footer {
            text-align: center;
            margin-top: 20px;
            padding-top: 10px;
            border-top: 1px solid #ddd;
            font-size: 9px;
            color: #999;
        }
        
        .badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: bold;
        }
        
        .badge-aktif { background: #d4edda; color: #155724; }
        .badge-tidak { background: #f8d7da; color: #721c24; }
    </style>
</head>
<body>
    <!-- Header -->
    <div class="header">
        <h1>SISTEM INFORMASI PRESTASI SISWA (SIPRES)</h1>
        <p><?php echo e($school->name); ?> - NPSN: <?php echo e($school->npsn); ?></p>
        <p>Laporan Data Semua Siswa | Dicetak pada: <?php echo e($date); ?></p>
    </div>

    <!-- Tabel Siswa -->
    <div class="section-title">DATA SISWA (<?php echo e($totalSiswa); ?> Siswa)</div>
    
    <table>
        <thead>
            <tr>
                <th>No</th>
                <th>NIS</th>
                <th>Nama Lengkap</th>
                <th>Kelas</th>
                <th>JK</th>
                <th>No. HP</th>
                <th>Email</th>
                <th>Status Akun</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $siswa; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($index + 1); ?></td>
                <td><?php echo e($s->nis); ?></td>
                <td><?php echo e($s->nama_lengkap); ?></td>
                <td><?php echo e($s->kelas->nama_kelas ?? '-'); ?></td>
                <td><?php echo e($s->jenis_kelamin == 'L' ? 'L' : 'P'); ?></td>
                <td><?php echo e($s->no_hp ?? '-'); ?></td>
                <td><?php echo e($s->user->email ?? ($s->email ?? '-')); ?></td>
                <td>
                    <?php if($s->user_id): ?>
                        <span class="badge badge-aktif">Aktif</span>
                    <?php else: ?>
                        <span class="badge badge-tidak">Tidak Punya</span>
                    <?php endif; ?>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>

    <!-- Footer -->
    <div class="footer">
        <p>Dokumen ini dicetak dari Sistem Informasi Prestasi Siswa (SIPRES)</p>
        <p>&copy; <?php echo e(date('Y')); ?> SIPRES - All Rights Reserved</p>
    </div>
</body>
</html><?php /**PATH C:\laragon\www\prestasi1\resources\views/laporan/pdf/semua_siswa.blade.php ENDPATH**/ ?>