<?php echo $__env->make('admin.class.class.components.filter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="card custom-border" style="border: 1px solid #ccc">
    <div class="card-header">
        <h5 style="margin: 0">Thông tin lớp học</h5>
    </div>
    <div class="card-body">
        <div class="row m-0">
            <div class="form-group col-lg-6">
                <label for="name">Tên lớp học</label>
                <input type="text" class="form-control" id="name" name="name"
                    value="<?php echo e(isset($getEdit) ? $getEdit->name : old('name')); ?>" placeholder="Tên lớp học">
                <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                    <div class="text-danger"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="form-group col-lg-6">
                <label for="class_course">Chuyên ngành học</label>
                <select class="form-select setupSelect2" id="defaultSelect" fdprocessedid="fmy4e" name="major_id" >
                    <option value="" class="form-control">--Chọn chuyên ngành học--</option>
                    <?php $__currentLoopData = $getAllMajor; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($major->id); ?>"
                            <?php echo e(old('major_id', isset($getEdit) ? $getEdit->major_id : '') == $major->id ? 'selected' : ''); ?>>
                            <?php echo e($major->name); ?>

                        </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </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]); ?>
                    <div class="text-danger"><?php echo e($message); ?></div>
                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
        </div>
        <div class="form-group">
            <label for="class_description">Mô tả lớp học</label>
            <textarea class="form-control" id="description_class" name="description_class" placeholder="Mô tả lớp học"><?php echo e(isset($getEdit) ? $getEdit->description : old('description_class')); ?></textarea>
        </div>
    </div>
</div>
<?php /**PATH C:\laragon\www\3_LARAVEL\SchoolManagementSystem\SchoolManagementSystem\resources\views/admin/class/class/components/general.blade.php ENDPATH**/ ?>