

<?php $__env->startSection('content'); ?>
<div class="container mt-4">
    <h2 class="mb-4">Registration Details</h2>

    <div class="card">
        <div class="card-body">
            <p><strong>Registration Number:</strong> <?php echo e($registration->registration_number); ?></p>
            <p><strong>First Name:</strong> <?php echo e($registration->user->first_name ?? $registration->first_name); ?></p>
            <p><strong>Last Name:</strong> <?php echo e($registration->user->last_name ?? $registration->last_name); ?></p>
            <p><strong>National ID:</strong> <?php echo e($registration->user->national_id ?? $registration->national_id); ?></p>
            <p><strong>Date of Birth:</strong>
                <?php echo e($registration->user->dob 
                    ? \Carbon\Carbon::parse($registration->user->dob)->format('d M Y') 
                    : \Carbon\Carbon::parse($registration->dob)->format('d M Y')); ?>

            </p>
            <p><strong>Programme Code:</strong> <?php echo e($registration->programme_code); ?></p>
        </div>
    </div>

    <div class="mt-3">
        <a href="<?php echo e(route('admin.registrations.edit', $registration->id)); ?>" class="btn btn-primary">Edit</a>
        <a href="<?php echo e(route('admin.registrations.index')); ?>" class="btn btn-secondary">Back</a>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\studentportal\resources\views/admin/registrations/show.blade.php ENDPATH**/ ?>