
{# Template For KIMS #}
<link href='https://fonts.googleapis.com/css2?family=Times New Roman:ital,wght@0,400;0,700;1,400;1,700&display=swap' rel='stylesheet'>
<style>
    body, .pages, table, th, td, div, span, p, h1, h2, h3, ol, ul, li {
        font-family: "Times New Roman", Times, serif !important;
    }
    .college-header {
        height: 35mm;
        width: 80%;
        margin: 0 10%;
    }
    .collage-header tr{
        height:7mm !important;
    }
    .pages {
        padding-left: 10mm;
        padding-right: 10mm;
        width: 100%;
        background: no-repeat;
        -webkit-background-size: contain;
        -moz-background-size: contain;
        -o-background-size: contain;
        background-size: contain;
        page-break-after: always;
    }
    .subject-details tr th{
        border-left: 2px solid #000;
        border-right: 2px solid #000;
        border-top: 2px solid #000;
        border-bottom: 2px solid #000;
        text-align:center;
        background: none !important;
    }
    .instructions{
        line-height:18px !important;
        font-size:15px !important;
        text-align:justify;
    }
    .instructions li{
        line-height:25px !important;
        margin-bottom:19px;
    }
    .subject-details tr td,
    .subject-details tr th{
        border-left: 1px solid #000;
        border-right: 1px solid #000;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        text-align:center;
        font-size: 16px !important;
    }
    .subject-details tr td{
        line-height: 15px !important;
    }
    .student-details tr td {
        text-align: left !important;
        font-size: 17px !important;
        padding: 4px 8px !important;
        border: 1px solid #000;
    }
    .college-details tr th {
        font-size: 20px !important;
        text-align: center !important;
    }
    .footer-details td {
        font-size: 16px !important;
        text-align: center;
        vertical-align: bottom;
    }
    .bold{
        font-weight: bold;
    }
    .subject-row td{
        padding: 4mm !important;
    }
</style>
{% for student in data.studentData %}
    <div class="pages page-1 displayPages" style="page-break-after:always;min-height:297mm;">
        <div class="subpage">
            <table style = 'text-align:center;width: 100%;' cellpadding='0' cellspacing='0' border='0' class='college-details'>
                <tr>
                    <th >
                        <img class = 'college-header' src = '{{data.collegeData.collegeHeader}}'>
                    </th>
                </tr>
            </table>
            <table style='margin-top:20px;text-align:center;width: 100%;' cellpadding='0' cellspacing='0' border='0' class='college-details'>
                <tr>
                    <th style="padding-top:10px; font-size:20px;">
                        <b><u>Student Admit Card</u></b>
                    </th>
                </tr>
            </table>
            <table class="full-width" style='margin-top:15px;text-align:center;width: 100%;font-size:13px;' cellpadding='0' cellspacing='0' border='0'>
                <tr>
                    <td style="width:83%;vertical-align:top;">
                        <table class="student-details" style='text-align:left;width: 100%;font-size:13px;' cellpadding='0' cellspacing='0' border='0'>
                            <tr>
                                <td style="width:50%;"><span>Academic Year: </span>{{ student.academicYear }} - {{ student.academicEndYear }}</td>
                                <td style="width:50%;"><span>Month of Exam: </span>{{ student.examMonthName }}</td>
                            </tr>
                            <tr>
                                <td><span>College Code: </span>P19GHD0316</td>
                                <td><span>Exam Centre Name: </span>Koshys Institute of Management Studies,
                                    31/1, Kadusonnappanahalli, HennurBagalur Road, Kannur P.O, Bengaluru</td>
                            </tr>
                            <tr>
                                <td><span>Program Level: </span>{{ student.courseType }}</td>
                                <td><span>Program Name: </span>{{ student.currentProgramName }}</td>
                            </tr>
                            <tr>
                                <td><span>Discipline/Combination: </span>{{ student.streamAbbreviation }}</td>
                                <td><span>Current Semester: </span>{{ student.termName }}</td>
                            </tr>
                            <tr>
                                <td><span>Student Register Number: </span>{{ student.registerNo|raw }}</td>
                                <td><span>Student Name: </span>{{ student.studentName }}</td>
                            </tr>
                        </table>
                    </td>
                    <td style="width:17%;vertical-align:top;text-align:right;">
                        <img style="width:120px;height:165px;" src="{{ student.studentImage }}">
                    </td>
                </tr>
            </table>
            {% if student.isHallTicketBlocked %}
                <div class="full-width pull-left text-center bold" style="margin:5mm 0;color:red">
                    {{ student.blockingMsg|raw }}
                </div>
            {% else %}
                <table class='subject-details' cellspacing="0" style="margin:25px auto 15px; text-align:left;width: 100%;">
                    <thead>
                        <tr>
                            <th style="text-align:center;" width="7%">SL<br>NO</th>
                            <th style="text-align:center;" width="15%">COURSE CODE</th>
                            <th width="30%">COURSE NAME</th>
                            <th style="text-align:center;" width="18%">DATE AND TIME</th>
                            <th style="text-align:center;" width="15%">INVIGILATOR'S SIGNATURE</th>
                        </tr>
                    </thead>
                    <tbody>
                        {% set slNo = 0 %}
                        {% for subject in student.subjects %}
                            {% set slNo = slNo + 1 %}
                            <tr class="subject-row">
                                <td style="text-align:center;" >
                                    {{slNo}}
                                </td>
                                <td>
                                    {{subject.code|raw}}
                                </td>
                                <td style="padding:2mm 1mm !important; text-align:left;">
                                    {{subject.name|raw}}
                                </td>
                                {% if subject.isSubjectBlocked %}
                                    <td colspan="2" class="text-center" style="color:red">
                                        {{subject.blockingMsg |raw}}
                                    </td>
                                {% else %}
                                    <td>
                                        {{subject.assessmentDate == "" or subject.assessmentDate == "0000-00-00" ? "" : subject.assessmentDate|date("d.m.Y")}}
                                        {% if subject.assessmentStartTime %}
                                            <br>{{subject.assessmentStartTime|raw}} - {{subject.assessmentEndTime|raw}}
                                        {% endif %}
                                    </td>
                                    <td>&nbsp;</td>
                                {% endif %}
                            </tr>
                        {% endfor %}
                    </tbody>
                </table>
            {% endif %}
            <table class="footer-details" cellspacing="0" style="margin:15mm auto 0; text-align:center;width: 100%;">
                <tr>
                    <td width="33%">
                        <img width='150' height='60' src='{{data.collegeData.coeSign}}'><br>
                        <span class="bold">Controller of Examinations</span>
                    </td>
                    <td width="34%">
                        <img width='150' height='60' src='{{data.collegeData.principalSign}}'><br>
                        <span class="bold">Principal</span>
                    </td>
                    <td width="33%">
                        <div style="height:60px;"></div>
                        <span class="bold">Signature of Candidate</span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="pages page-2 displayPages" style="page-break-after:always;min-height:297mm;">
        <h4 style="text-align: center; font-size: 22px; text-decoration: underline; font-weight: bold;">INSTRUCTIONS TO CANDIDATES</h4>
        <div class="instructions" style="font-size: 20px !important ; margin-top: 25px;">
            <ul>
                Check the examination timetable, date, and room numbers carefully in advance.
                <li style="font-size: 20px; margin-top: 10px;">Report to the examination hall at least 30 minutes before the scheduled time.</li>
                <li style="font-size: 20px;">Late arrival to the exam hall is not permitted.</li>
                <li style="font-size: 20px;">Carry Admission/Hall Ticket and college identity card without fail. No student will be allowed to write the exam without Admission/Hall Ticket and college ID proof.</li>
                <li style="font-size: 20px;">Occupy the seat allotted as per your register number or seat number.</li>
                <li style="font-size: 20px;">Do not loiter near examination halls.</li>
                <li style="font-size: 20px;">Fill in the cover page of Answer Booklet clearly and correctly. Make sure that Answer booklet is complete and properly bound before starting the exam. If defective, request a replacement immediately. Read the instructions carefully printed on the answer booklet.</li>
                <li style="font-size: 20px;">Read the question paper carefully before answering. If any discrepancy is noticed, Candidates must continue to write the exams and the same may be submitted as a grievance to the examination cell. However, candidates should not argue with the invigilator.</li>
                <li style="font-size: 20px;">Do not write any code words/answers/symbols/any identification marks on the question paper other than register number.</li>
                <li style="font-size: 20px;">Any calculations/rough work must be done only at the last page of the answer booklet.</li>
                <li style="font-size: 20px;">Use only blue or black ink for writing answers. Do not use red or green ink. Change of pen/ink must be countersigned by the invigilator.</li>
                <li style="font-size: 20px;">Write answers neatly and legibly, numbering them correctly. Overwriting or illegible handwriting may result in loss of marks.</li>
                <li style="font-size: 20px;">Do not write anything on the margins or outside the ruled area of the page.</li>
                <li style="font-size: 20px;">Do not write or draw any religious symbols or personal messages. Such acts will be treated as malpractice.</li>
                <li style="font-size: 20px;">Maintain complete silence in the examination hall. Communication or exchange of materials is strictly prohibited.</li>
                <li style="font-size: 20px;">Electronic gadgets such as mobile phones, smart watches, programmable calculators, or digital devices are strictly banned inside the exam hall. Possession of such devices will be treated as malpractice.</li>
                <li style="font-size: 20px;">Any attempt to copy, possess unauthorized material, or assist others is strictly prohibited.</li>
                <li style="font-size: 20px;">Students found indulging in malpractice will face disciplinary action as per Institution norms.</li>
                <li style="font-size: 20px;">Do not tamper or scratch the barcode displayed on the answer booklet.</li>
                <li style="font-size: 20px;">After the completion of exams, handover Answer booklet to the invigilator and leave the exam hall one by one as per the instructions of invigilator.</li>
            </ul>
        </div>
        <div style="text-align: center; font-weight: bold; font-style: italic; margin-top: 25px; font-size: 20px;">
            Wish You All The Best
        </div>
    </div>
{% endfor %}