

<?php $__env->startSection('content'); ?>

<h4 class="mb-4">Data Pendaftar SPMB</h4>

<div class="table-responsive">
<table class="table table-bordered table-striped table-sm">
    <thead class="table-dark text-center align-middle">
        <tr>
            <th>No</th>
            <th>No Pendaftaran</th>
            <th>Nama Lengkap</th>
            <th>No Telepon</th>
            <th>NISN</th>
            <th>Tempat Lahir</th>
            <th>Tanggal Lahir</th>
            <th>Jenis Kelamin</th>
            <th>Agama</th>
            <th>Anak Ke</th>
            <th>Status Anak</th>
            <th>Alamat Murid</th>
            <th>Riwayat Penyakit</th>
            <th>Sekolah Asal</th>

            <th>Nama Ayah</th>
            <th>Pekerjaan Ayah</th>
            <th>Pendidikan Ayah</th>
            <th>Penghasilan Ayah</th>

            <th>Nama Ibu</th>
            <th>Pekerjaan Ibu</th>
            <th>Pendidikan Ibu</th>
            <th>Penghasilan Ibu</th>

            <th>Alamat Orang Tua</th>
            <th>Telepon Orang Tua</th>
            <th>Nomor KIP</th>

            <th>Jurusan</th>
            <th width="140">Aksi</th>
        </tr>
    </thead>

    <tbody>
        <?php $__empty_1 = true; $__currentLoopData = $pendaftar; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
        <tr>
            <td class="text-center"><?php echo e($loop->iteration); ?></td>
            <td><?php echo e($item->no_pendaftaran ?? '-'); ?></td>
            <td><?php echo e($item->nama_lengkap); ?></td>
            <td><?php echo e($item->no_telepon); ?></td>
            <td><?php echo e($item->nisn ?? '-'); ?></td>
            <td><?php echo e($item->tempat_lahir ?? '-'); ?></td>
            <td><?php echo e($item->tanggal_lahir ?? '-'); ?></td>
            <td><?php echo e($item->jenis_kelamin ?? '-'); ?></td>
            <td><?php echo e($item->agama ?? '-'); ?></td>
            <td><?php echo e($item->anak_ke ?? '-'); ?></td>
            <td><?php echo e($item->status_anak ?? '-'); ?></td>
            <td><?php echo e($item->alamat_murid ?? '-'); ?></td>
            <td><?php echo e($item->riwayat_penyakit ?? '-'); ?></td>
            <td><?php echo e($item->sekolah_asal ?? '-'); ?></td>

            <td><?php echo e($item->nama_ayah ?? '-'); ?></td>
            <td><?php echo e($item->pekerjaan_ayah ?? '-'); ?></td>
            <td><?php echo e($item->pendidikan_ayah ?? '-'); ?></td>
            <td><?php echo e($item->penghasilan_ayah ?? '-'); ?></td>

            <td><?php echo e($item->nama_ibu ?? '-'); ?></td>
            <td><?php echo e($item->pekerjaan_ibu ?? '-'); ?></td>
            <td><?php echo e($item->pendidikan_ibu ?? '-'); ?></td>
            <td><?php echo e($item->penghasilan_ibu ?? '-'); ?></td>

            <td><?php echo e($item->alamat_orangtua ?? '-'); ?></td>
            <td><?php echo e($item->telepon_orangtua ?? '-'); ?></td>
            <td><?php echo e($item->nomor_kip ?? '-'); ?></td>

            <td class="text-center fw-bold"><?php echo e($item->jurusan); ?></td>

            <td class="text-center">
                <a href="<?php echo e(route('admin.pendaftaran.edit', $item->id)); ?>"
                   class="btn btn-sm btn-warning mb-1">
                    Edit
                </a>

                <form action="<?php echo e(route('admin.pendaftaran.destroy', $item->id)); ?>"
                      method="POST">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('DELETE'); ?>
                    <button class="btn btn-sm btn-danger"
                        onclick="return confirm('Hapus data ini?')">
                        Hapus
                    </button>
                </form>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
        <tr>
            <td colspan="28" class="text-center">
                Data pendaftar belum tersedia
            </td>
        </tr>
        <?php endif; ?>
    </tbody>

    <a href="<?php echo e(route('admin.pendaftaran.export.csv')); ?>"
   class="btn btn-success mb-3">
   ⬇ Export Excel (CSV)
</a>
</table>
</div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\spmb-skagris\resources\views/admin/dashboard.blade.php ENDPATH**/ ?>