

<?php $__env->startSection('title', 'Student Profile'); ?>

<?php $__env->startSection('content'); ?>
<div class="container mt-4">
    <div class="card shadow-sm">
        <div class="card-header bg-primary text-white">
            <h5 class="mb-0">Student Profile</h5>
        </div>

        <div class="card-body">
            <?php if(session('success')): ?>
                <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>

            <form action="<?php echo e(route('student.profile.update')); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                <table class="table table-bordered">
                    <tr>
                        <th class="bg-light">Registration Number</th>
                        <td><input type="text" class="form-control" value="<?php echo e($registrationNumber); ?>" readonly></td>
                    </tr>
                    <tr>
                        <th class="bg-light">First Name</th>
                        <td><input type="text" name="first_name" class="form-control" value="<?php echo e($student->first_name); ?>" required></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Last Name</th>
                        <td><input type="text" name="last_name" class="form-control" value="<?php echo e($student->last_name); ?>" required></td>
                    </tr>
                    <tr>
                        <th class="bg-light">National ID / Passport</th>
                        <td><input type="text" name="national_id" class="form-control" value="<?php echo e($student->national_id); ?>" required></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Date of Birth</th>
                        <td><input type="date" name="dob" class="form-control" value="<?php echo e($student->dob); ?>" required></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Programme</th>
                        <td><input type="text" class="form-control" value="<?php echo e($programme); ?>" readonly></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Attendance Mode</th>
                        <td><input type="text" class="form-control" value="<?php echo e($attendanceMode); ?>" readonly></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Credits</th>
                        <td><input type="text" class="form-control" value="<?php echo e($credits); ?>" readonly></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Duration</th>
                        <td><input type="text" class="form-control" value="<?php echo e(is_numeric($duration) ? $duration . ' year(s)' : $duration); ?>" readonly></td>
                    </tr>
                    <tr>
                        <th class="bg-light">Status</th>
                        <td><input type="text" class="form-control" value="<?php echo e($status); ?>" readonly></td>
                    </tr>
                </table>

                <div class="text-end">
                    <button type="submit" class="btn btn-success">Update Profile</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

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