<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>Preview Data Pendaftaran</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">

    <style>
        body{
            background:#f4f6fb;
        }
        .card{
            border-radius:20px;
            box-shadow:0 10px 25px rgba(0,0,0,.08);
        }
        .label{
            width:35%;
            font-weight:600;
        }
    </style>
</head>
<body>

<div class="container my-5">
    <div class="card p-4">

        <h4 class="text-center fw-bold text-primary mb-4">
            PREVIEW DATA PENDAFTARAN
        </h4>

        <p class="text-center text-muted">
            Silakan periksa kembali data Anda sebelum dikirim
        </p>

        <table class="table table-bordered">
            <tr><td class="label">Nama Lengkap</td><td><?php echo e($data->nama_lengkap); ?></td></tr>
            <tr><td class="label">No Telepon</td><td><?php echo e($data->no_telepon); ?></td></tr>
            <tr><td class="label">NISN</td><td><?php echo e($data->nisn ?? '-'); ?></td></tr>
            <tr><td class="label">Sekolah Asal</td><td><?php echo e($data->sekolah_asal ?? '-'); ?></td></tr>
            <tr><td class="label">Tempat, Tanggal Lahir</td>
                <td><?php echo e($data->tempat_lahir); ?>, <?php echo e($data->tanggal_lahir); ?></td>
            </tr>
            <tr><td class="label">Jenis Kelamin</td><td><?php echo e($data->jenis_kelamin); ?></td></tr>
            <tr><td class="label">Agama</td><td><?php echo e($data->agama); ?></td></tr>
            <tr><td class="label">Alamat Murid</td><td><?php echo e($data->alamat_murid); ?></td></tr>
            <tr><td class="label">Riwayat Penyakit</td><td><?php echo e($data->riwayat_penyakit ?? '-'); ?></td></tr>

            <tr class="table-secondary">
                <td colspan="2"><strong>Data Orang Tua / Wali</strong></td>
            </tr>

            <tr><td class="label">Nama Ayah</td><td><?php echo e($data->nama_ayah ?? '-'); ?></td></tr>
            <tr><td class="label">Pekerjaan Ayah</td><td><?php echo e($data->pekerjaan_ayah ?? '-'); ?></td></tr>
            <tr><td class="label">Pendidikan Ayah</td><td><?php echo e($data->pendidikan_ayah ?? '-'); ?></td></tr>
            <tr><td class="label">Penghasilan Ayah</td><td><?php echo e($data->penghasilan_ayah ?? '-'); ?></td></tr>
            <tr><td class="label">Nama Ibu</td><td><?php echo e($data->nama_ibu ?? '-'); ?></td></tr>
            <tr><td class="label">Pekerjaan Ibu</td><td><?php echo e($data->pekerjaan_ibu ?? '-'); ?></td></tr>
            <tr><td class="label">Pendidikan Ibu</td><td><?php echo e($data->pendidikan_ibu ?? '-'); ?></td></tr>
            <tr><td class="label">Penghasilan Ibu</td><td><?php echo e($data->penghasilan_ibu ?? '-'); ?></td></tr>
            <tr><td class="label">Alamat Orang Tua</td><td><?php echo e($data->alamat_orangtua ?? '-'); ?></td></tr>
            <tr><td class="label">No Telepon Orang Tua</td><td><?php echo e($data->telepon_orangtua ?? '-'); ?></td></tr>
            <tr><td class="label">Nomor KIP</td><td><?php echo e($data->nomor_kip ?? '-'); ?></td></tr>

            <tr class="table-secondary">
                <td colspan="2"><strong>Pilihan Jurusan</strong></td>
            </tr>

            <tr><td class="label">Jurusan</td><td><?php echo e($data->jurusan); ?></td></tr>
        </table>

        <div class="d-flex justify-content-between mt-4">
            <a href="<?php echo e(route('daftar')); ?>" class="btn btn-secondary">
                ⬅ Kembali Edit Data
            </a>

            <form action="<?php echo e(route('daftar.store')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <?php $__currentLoopData = $data->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <input type="hidden" name="<?php echo e($key); ?>" value="<?php echo e($value); ?>">
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                <button type="submit" class="btn btn-success">
                    ✔ Simpan & Kirim Pendaftaran
                </button>
            </form>
        </div>

    </div>
</div>

</body>
</html>
<?php /**PATH C:\xampp\htdocs\spmb-skagris\resources\views/pendaftaran/preview.blade.php ENDPATH**/ ?>