<?php
// pages/resultSheetSingleStdAll.php
if (!isset($_SESSION['userid'])) {
    die("Unauthorized access");
}
?>
<div class="container-fluid py-4 no-print">
    <div class="row mb-4">
        <div class="col-12">
            <div class="card shadow-sm border-0">
                <div class="card-header bg-primary text-white d-flex justify-content-between align-items-center py-3">
                    <h5 class="mb-0 urdu-regular"><i class="bi bi-person-badge me-2"></i>سالانہ رزلٹ شیٹ (انفرادی طالب
                        علم)</h5>
                    <a href="resultSheet" class="btn btn-sm btn-outline-light urdu-regular">تمام طلباء کا نتیجہ</a>
                </div>
                <div class="card-body bg-light">
                    <form id="searchForm" class="row g-3 align-items-end justify-content-center">
                        <div class="col-md-3">
                            <label class="form-label urdu-regular">درجہ</label>
                            <?php $crud->darjaatCmb('rpt_darja', '', 'form-select urdu-regular shadow-sm border-0'); ?>
                        </div>
                        <div class="col-md-3">
                            <label class="form-label urdu-regular">تعلیمی سال</label>
                            <select id="rpt_year" class="form-select urdu-regular shadow-sm border-0">
                                <option value="">پہلے درجہ منتخب کریں</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <label class="form-label urdu-regular">طالب علم</label>
                            <select id="rpt_student" class="form-select urdu-regular shadow-sm border-0">
                                <option value="">پہلے سال منتخب کریں</option>
                            </select>
                        </div>
                        <div class="col-md-2 d-flex gap-2">
                            <button type="button" id="btnShowReport"
                                class="btn btn-primary w-100 urdu-regular shadow-sm">
                                <i class="bi bi-search me-1 p-2"></i> تلاش کریں
                            </button>
                            <button type="button" id="btnPrintReport"
                                class="btn btn-dark w-100 urdu-regular d-none shadow-sm">
                                <i class="bi bi-printer me-1"></i> پرنٹ
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <!-- Results Area -->
    <div id="rpt-results" class="row">
        <!-- Report content will be injected here via JS -->
    </div>
</div>

<script src="assets/js/result_sheet_single_std_all.js"></script>