

<?php $__env->startSection('title', 'Pendataan Berhasil - Sistem Informasi Pengawai Jabatan Fungsional'); ?>

<?php $__env->startSection('content'); ?>
<div class="row justify-content-center">
    <div class="col-lg-6 col-md-8">
        <div class="card card-form text-center">
            <div class="card-body" style="padding: 3rem 2rem;">
                <div style="font-size: 4rem; color: #27ae60; margin-bottom: 1.5rem;">
                    <i class="fas fa-check-circle"></i>
                </div>

                <h2 style="color: #4a3728; margin-bottom: 1rem;">Pendataan Berhasil Disimpan!</h2>

                <p class="text-muted mb-3">Terima kasih telah mengisi formulir pendataan pegawai. Data Anda telah kami terima
                    dan sedang menunggu validasi dari admin.</p>

                <div class="alert alert-info" role="alert">
                    <strong>ID Pendataan Anda:</strong><br>
                    <code><?php echo e($pegawai->id); ?></code>
                </div>

                <div class="row mb-4">
                    <div class="col-md-6">
                        <div class="mb-3">
                            <small class="text-muted">Nama Lengkap</small>
                            <p class="fw-bold" style="color: #4a3728;"><?php echo e($pegawai->nama_lengkap); ?></p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="mb-3">
                            <small class="text-muted">NIP</small>
                            <p class="fw-bold" style="color: #4a3728;"><?php echo e($pegawai->nip); ?></p>
                        </div>
                    </div>
                </div>

                <div class="row mb-4">
                    <div class="col-md-6">
                        <div class="mb-3">
                            <small class="text-muted">Jabatan Fungsional</small>
                            <p class="fw-bold" style="color: #4a3728;"><?php echo e($pegawai->jabatan->nama_jabatan_lengkap); ?></p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="mb-3">
                            <small class="text-muted">Status</small>
                            <p>
                                <span class="badge bg-warning text-dark">
                                    <i class="fas fa-hourglass-half"></i> <?php echo e($pegawai->status_validasi); ?>

                                </span>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="card mb-3" style="background-color: #f8f9fa; border: 1px solid #e9ecef;">
                    <div class="card-body">
                        <p class="mb-0" style="font-size: 0.9rem; color: #666;">
                            <i class="fas fa-info-circle"></i>
                            <strong>Informasi:</strong><br>
                            Admin akan memverifikasi data Anda dalam waktu 1-3 hari kerja. Silakan hubungi admin jika ada pertanyaan atau
                            data yang perlu diperbarui.
                        </p>
                    </div>
                </div>

                <div class="d-grid gap-2">
                    <a href="<?php echo e(route('pegawai.form')); ?>" class="btn btn-primary">
                        <i class="fas fa-plus"></i> Isi Formulir Baru
                    </a>
                    <a href="#" onclick="window.print()" class="btn btn-outline-secondary">
                        <i class="fas fa-print"></i> Cetak Bukti
                    </a>
                </div>
            </div>
        </div>

        <?php if($pegawai->email_status === 'sent'): ?>
            <div class="alert alert-success mt-3" role="alert">
                <small>
                    <i class="fas fa-envelope-circle-check"></i>
                    Konfirmasi email berhasil dikirim ke: <strong><?php echo e($pegawai->email); ?></strong>
                </small>
            </div>
        <?php elseif($pegawai->email_status === 'logged'): ?>
            <div class="alert alert-warning mt-3" role="alert">
                <small>
                    <i class="fas fa-envelope"></i>
                    Data berhasil disimpan, tetapi email belum dikirim melalui Gmail karena konfigurasi email masih mode log.
                </small>
            </div>
        <?php elseif($pegawai->email_status === 'failed'): ?>
            <div class="alert alert-danger mt-3" role="alert">
                <small>
                    <i class="fas fa-envelope-open-text"></i>
                    Data berhasil disimpan, tetapi email konfirmasi gagal dikirim ke: <strong><?php echo e($pegawai->email); ?></strong>
                </small>
            </div>
        <?php else: ?>
            <div class="alert alert-secondary mt-3" role="alert">
                <small>
                    <i class="fas fa-envelope"></i>
                    Status email konfirmasi: <strong>menunggu pengiriman</strong>
                </small>
            </div>
        <?php endif; ?>
    </div>
</div>

<style>
    @media print {
        body {
            background: #f4f1e9;
        }

        .navbar, .footer, .alert-secondary, .btn {
            display: none;
        }

        .container-main {
            padding: 0;
        }

        .card {
            box-shadow: none;
        }
    }
</style>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\Skripsi-M\resources\views/public/success.blade.php ENDPATH**/ ?>