<div class="row mb-4">
    <div class="col-sm-12">
        <!-- Bộ lọc -->
        <form method="GET" action="<?php echo e(route('subject.index')); ?>" class="row g-3 align-items-center">
            <div class="col-md-3">
                <select class="form-select setupSelect2" name="course_id">
                    <option value="">Chọn ngành</option>
                    <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($course->id); ?>" <?php echo e(request('course_id') == $course->id ? 'selected' : ''); ?>><?php echo e($course->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-md-3">
                <select class="form-select setupSelect2" name="major_id">
                    <option value="">Chọn chuyên ngành</option>
                    <?php $__currentLoopData = $majors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $major): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($major->id); ?>" <?php echo e(request('major_id') == $major->id ? 'selected' : ''); ?>><?php echo e($major->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-md-3">
                <select class="form-select setupSelect2" name="status">
                    <option value="0" <?php echo e(request('status') === '0' ? 'selected' : ''); ?>>Hoạt động</option>
                    <option value="1" <?php echo e(request('status') === '1' ? 'selected' : ''); ?>>Không hoạt động</option>
                </select>
            </div>
            <div class="col-md-3">
                <input type="text" class="form-control" name="search" placeholder="Tìm kiếm" value="<?php echo e(request('search')); ?>">
            </div>

            <div class="col-md-12 d-flex mt-2">
                <div>
                    <button type="submit" class="btn btn-primary btn-sm me-2">Lọc</button>
                    <a href="<?php echo e(route('subject.index')); ?>" class="btn btn-secondary btn-sm me-2">Bỏ lọc</a>
                </div>
                <div>
                    <a href="<?php echo e(route('subject.create')); ?>" class="btn btn-sm btn-success">
                        <i class="fa fa-plus"></i> Thêm môn học
                    </a>
                </div>
            </div>
        </form>
    </div>
</div><?php /**PATH C:\Users\phama\OneDrive\Desktop\Tai_Nguyen_Hoc_Tap\DuAnPHP3\SchoolManagementSystem\resources\views/admin/subject/subject/components/filter.blade.php ENDPATH**/ ?>