<div class="row">
    <div class="col-lg-12">
        <div class="card custom-border" style="border: 1px solid #ccc">
            <div class="card-header">
                <h5 style="margin: 0">Thêm Sinh Viên</h5>
            </div>
            <div class="card-body">
                <div class="row m-0">
                    <div class="form-group col-6">
                        <label for="name">Tên sinh viên</label>
                        <input type="text" class="form-control" id="name" name="name"
                            placeholder="Tên sinh viên" value="<?php echo e(isset($getEdit) ? $getEdit->name : old('name')); ?>">
                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="studen_code">Mã sinh viên</label>
                        <input type="text" class="form-control" id="studen_code" name="studen_code"
                            placeholder="Mã sinh viên"
                            value="<?php echo e(isset($getEdit) ? $getEdit->studen_code : old('studen_code')); ?>">
                        <?php $__errorArgs = ['studen_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="col-6 form-group">
                        <label for="gender">Giới tính</label>
                        <div class="d-flex align-items-center">
                            <div class="form-check">
                                <input type="radio" class="form-check-input" id="genderMale" name="gender"
                                    value="male"
                                    <?php echo e(isset($getEdit) && $getEdit->gender == 'male' ? 'checked' : (old('gender') == 'male' ? 'checked' : '')); ?>>
                                <label class="form-check-label" for="genderMale" style="margin-left: 20px">
                                    Nam
                                </label>
                            </div>
                            <div class="form-check">
                                <input type="radio" class="form-check-input" id="genderFemale" name="gender"
                                    value="female"
                                    <?php echo e(isset($getEdit) && $getEdit->gender == 'female' ? 'checked' : (old('gender') == 'female' ? 'checked' : '')); ?>>
                                <label class="form-check-label " for="genderFemale" style="margin-left: 20px">
                                    Nữ
                                </label>
                            </div>
                            <?php $__errorArgs = ['gender'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                <p class="message_error"><?php echo e($message); ?></p>
                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>

                    </div>
                    <div class="form-group col-6">
                        <label for="date_of_birth">Ngày sinh</label>
                        <input type="date" class="form-control" id="date_of_birth" name="date_of_birth" placeholder="date_of_birth"
                            value="<?php echo e(isset($getEdit) ? $getEdit->date_of_birth : old('date_of_birth')); ?>">
                        <?php $__errorArgs = ['date_of_birth'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="email">Email</label>
                        <input type="email" class="form-control" id="email" name="email" placeholder="Email"
                            value="<?php echo e(isset($getEdit) ? $getEdit->email : old('email')); ?>">
                        <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="address">Địa chỉ</label>
                        <input type="address" class="form-control" id="address" name="address" placeholder="address"
                            value="<?php echo e(isset($getEdit) ? $getEdit->address : old('address')); ?>">
                        <?php $__errorArgs = ['address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="form-group col-6">
                        <label for="course_id">Nghành</label>
                        <select class="form-select form-control" name="course_id" id="course_id">
                            <?php if(isset($getEdit)): ?>
                                <?php $__currentLoopData = $getMajor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($major->id); ?>"
                                        <?php echo e($major->id == $getEdit->course_id ? 'selected' : ''); ?>>
                                        <?php echo e($major->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <option value="0">--Chọn chuyên nghành--</option>
                                <?php $__currentLoopData = $getMajor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($major->id); ?>"><?php echo e($major->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </select>
                        <?php $__errorArgs = ['course_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    
                    <div class="form-group col-6">
                        <label for="major_id">Chuyên nghành</label>
                        <select class="form-select form-control" name="major_id" id="major_id">
                            <?php if(isset($getEdit)): ?>
                                <?php $__currentLoopData = $getMajor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($major->id); ?>"
                                        <?php echo e($major->id == $getEdit->major_id ? 'selected' : ''); ?>>
                                        <?php echo e($major->name); ?>

                                    </option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <option value="0">--Chọn chuyên nghành--</option>
                                <?php $__currentLoopData = $getMajor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($major->id); ?>"><?php echo e($major->name); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>
                        </select>
                        <?php $__errorArgs = ['major_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="cccd_number">CCCD</label>
                        <input type="num" class="form-control" id="cccd_number" name="cccd_number"
                            placeholder="Ngày nhập học"
                            value="<?php echo e(isset($getEdit) ? $getEdit->cccd_number : old('cccd_number')); ?>">
                        <?php $__errorArgs = ['cccd_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="cccd_issue_date">Ngày cấp</label>
                        <input type="date" class="form-control" id="cccd_issue_date" name="cccd_issue_date"
                            placeholder="Ngày nhập học"
                            value="<?php echo e(isset($getEdit) ? $getEdit->cccd_issue_date : old('cccd_issue_date')); ?>">
                        <?php $__errorArgs = ['cccd_issue_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="cccd_issue_date">Ngày cấp</label>
                        <input type="date" class="form-control" id="cccd_issue_date" name="cccd_issue_date"
                            placeholder="Ngày nhập học"
                            value="<?php echo e(isset($getEdit) ? $getEdit->cccd_issue_date : old('cccd_issue_date')); ?>">
                        <?php $__errorArgs = ['cccd_issue_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="cccd_place">Nơi cấp</label>
                        <input type="text" class="form-control" id="cccd_place" name="cccd_place"
                            placeholder="Ngày Cấp"
                            value="<?php echo e(isset($getEdit) ? $getEdit->cccd_place : old('cccd_place')); ?>">
                        <?php $__errorArgs = ['cccd_place'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="year_of_enrollment">Năm nhập học</label>
                        <input type="date" class="form-control" id="year_of_enrollment" name="year_of_enrollment"
                            placeholder="Ngày nhập học"
                            value="<?php echo e(isset($getEdit) ? $getEdit->year_of_enrollment : old('year_of_enrollment')); ?>">
                        <?php $__errorArgs = ['year_of_enrollment'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="semesters">Kỳ học</label>
                        <input type="date" class="form-control" id="semesters" name="semesters"
                            placeholder="Ngày nhập học"
                            value="<?php echo e(isset($getEdit) ? $getEdit->semesters : old('semesters')); ?>">
                        <?php $__errorArgs = ['semesters'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                    <div class="form-group col-6">
                        <label for="phone">Số điện thoại</label>
                        <input type="text" class="form-control" id="phone" name="phone"
                            placeholder="Số điện thoại" value="<?php echo e(isset($getEdit) ? $getEdit->phone : old('phone')); ?>">
                        <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="message_error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\3_LARAVEL\SchoolManagementSystem\SchoolManagementSystem\resources\views/admin/student/student/components/general.blade.php ENDPATH**/ ?>