<?php $pageTitle = 'My Profile'; ?>
<div class="card-cix mb-4">
    <div class="card-cix-header"><h5 class="mb-0"><i class="fas fa-id-card text-orange me-2"></i> Student Information</h5></div>
    <div class="row g-3">
        <div class="col-md-4"><p class="text-secondary mb-1">Student Number</p><h5 style="color:var(--secondary)"><?= e($student['student_number'] ?? '') ?></h5></div>
        <div class="col-md-4"><p class="text-secondary mb-1">Email</p><h5><?= e($student['email'] ?? '') ?></h5></div>
        <div class="col-md-4"><p class="text-secondary mb-1">Province</p><h5><?= e($student['province'] ?? 'N/A') ?></h5></div>
        <div class="col-md-4"><p class="text-secondary mb-1">Town</p><h5><?= e($student['town'] ?? 'N/A') ?></h5></div>
        <div class="col-md-4"><p class="text-secondary mb-1">Highest Education</p><h5><?= e($student['highest_education'] ?? 'N/A') ?></h5></div>
    </div>
</div>
<div class="card-cix">
    <div class="card-cix-header"><h5 class="mb-0"><i class="fas fa-edit text-orange me-2"></i> Edit Profile</h5></div>
    <form method="POST" action="<?= base_url('student/profile') ?>">
        <?= csrf_field() ?>
        <div class="row g-3">
            <div class="col-md-6"><div class="form-group-cix"><label class="form-label-cix">First Name</label><input type="text" name="first_name" class="form-control-cix" value="<?= e($student['first_name'] ?? '') ?>" required></div></div>
            <div class="col-md-6"><div class="form-group-cix"><label class="form-label-cix">Last Name</label><input type="text" name="last_name" class="form-control-cix" value="<?= e($student['last_name'] ?? '') ?>" required></div></div>
            <div class="col-md-6"><div class="form-group-cix"><label class="form-label-cix">Phone</label><input type="text" name="phone" class="form-control-cix" value="<?= e($student['phone'] ?? '') ?>"></div></div>
            <div class="col-md-6"><div class="form-group-cix"><label class="form-label-cix">WhatsApp</label><input type="text" name="whatsapp" class="form-control-cix" value="<?= e($student['whatsapp'] ?? '') ?>"></div></div>
            <div class="col-12"><div class="form-group-cix"><label class="form-label-cix">Bio</label><textarea name="bio" class="form-control-cix" rows="3"><?= e($student['bio'] ?? '') ?></textarea></div></div>
        </div>
        <button type="submit" class="btn-cix btn-cix-primary"><i class="fas fa-save"></i> Save Changes</button>
    </form>
</div>
