<!-- view_modal.php -->

<div class="modal fade" id="viewModal<?php echo $row['id']; ?>" tabindex="-1" role="dialog" aria-labelledby="viewModalLabel<?php echo $row['id']; ?>" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="viewModalLabel<?php echo $row['id']; ?>">View Exam Routine</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <!-- Replace the content below with your dynamic data fetching and rendering logic -->
                <p>Class: <?php echo $row['class_id']; ?></p>
                <p>Exam Type: <?php echo $row['exam_type']; ?></p>
                <p>Exam Year: <?php echo $row['exam_year']; ?></p>
                <p>Subject: <?php echo $row['subject_name']; ?></p>
                <p>Exam Date: <?php echo $row['exam_date']; ?></p>
                <!-- End of dynamic content -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
