{# <!--
    College header KMASC UG
--> #}
{% set markDivwidth = 50  %}
{% if ('eleventhMarkEntry' in allFormFields or 'ELEVENTH' in allFormFields) %}
    {% set markDivwidth = 100/3  %}
{% endif %}
<html>
    <head>
    <style>
        td {
            line-height: 15px;
        }
       .print-table-border {                                                                                                                                                                            
            margin-bottom: 5px !important;                                                                                                                                                              
        }                                                                                                                                                                                                
        .table.table-bordered td,                                                                                                                                                                        
        .table.table-bordered th {                                                                                                                                                                       
            padding: 3px 5px;                                                                                                                                                                            
        }       
    </style>
    </head>
    <body class='page'>
        <div>
		<div class='sub-page'>
            <table>
                <tr>
				    <td align='center'>
                        <br/>
                        <br/>
                        <img style='width: 750px; height: 120px; margin-top: -120px;' src="{{college.url}}/libcommon/images/college/{{college.collegeCode}}/banner.png">
                    </td>
                    <td>
                        
                        <img style='float: right;width: 150px;height: 165px;'src="{{student.studentPhoto}}" alt='' class='img-responsive' />
                    </td>
                </tr>
            </table>
            <table width="100%" style="border-collapse: collapse; font-size: 13px; margin-top: -80px; margin-left: 80px;">
                <tr>
                    <td style="width: 120px;"><b>Application No</b></td>
                    <td style="width: 10px;"><b>:</b></td>
                    <td><b>{{ student.applicationNo }}</b></td>

                    <td style="padding-left: 30px;">
                        <b>CAP ID : {{ student.capId }}</b>
                    </td>
                </tr>

                <tr>
                    <td><b>First Choice</b></td>
                    <td><b>:</b></td>
                    <td colspan="2"><b>{{ student.choice1 }}</b></td>
                </tr>

                <tr>
                    <td><b>Second Choice</b></td>
                    <td><b>:</b></td>
                    <td colspan="2"><b>{{ student.choice2 }}</b></td>
                </tr>

                <tr>
                    <td><b>Third Choice</b></td>
                    <td><b>:</b></td>
                    <td colspan="2"><b>{{ student.choice3 }}</b></td>
                </tr>
            </table>
            <br><br>
			<table cellspacing='0'  cellpadding='0' class='table table-bordered padding-print' width='100%' style='color:black;'>
        	    <tr>
                    <td colspan='3' align='center'>
                        <div align='center' style="font-size: 13px;width: 800px;">
                            <h3>{{form.name}}</h3>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan=3>
                        <table class='table table-bordered m-b-0' width='100%'>
    		                <tr>
        		                <td  width='25%'><b>Name </b></td>
                                <td width='30%'>
                                    <b>: {{student.studentName|upper}}</b>
                                </td>
                                <td width='20%'>
                                    <b>Gender</b><br>
                                </td>
                                <td width='25%'>
                                    : {{student.gender}}
                                </td>
                            </tr>
                            <tr>
                                <td><b>Date of Birth </b></td>
                                <td>
                                    : {{student.dateOfBirth|date("d/m/Y")}}
                                </td>
                                <td><b>Religion</b></td>
                                <td>
                                    : {{student.religion}} 
                                </td>
                            </tr>
                            <tr>
                                <td><b>Student E-mail </b></td>
                                <td>
                                    :{{student.student_email}} 
                                </td>
                                <td>
                                    <b>Category </b><br>
                                </td>
                                <td>
                                    :{{student.studentReservationId}} 
                                </td>
                            </tr>
                            <!-- <tr>
                                <td><b>Student Contact No</b></td>
                                <td>
                                    :{{student.studentMobile}} 
                                </td>
                                <td>
                                    <b>Domicile Status </b><br>
                                </td>
                                <td>
                                   : {{student.domicileId}}
                                </td>
                            </tr>
                            <tr>
                                <td><b>Mother Tongue </b></td>
                                <td>
                                   : {{student.motherTongue}} 
                                </td>
                                <td>
                                    <b>Nationality </b><br>
                                </td>
                                <td>
                                    :{{student.nationality}}
                                </td>
                            </tr> -->
                            <tr>
                                <!-- <td>
                                    <b>Extra-Curricular Activities </b><br>
                                </td>
                                <td>
                                    : {{student.extraCurricularActivities}} 
                                </td> -->
                                <td><b>Student Contact No</b></td>
                                <td>
                                    :{{student.studentMobile}} 
                                </td>
                                <td>
                                    <b>Caste</b><br/>
                                </td>
                                <td>: {{student.caste}}</td>
                            </tr>
		                </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
		    		        <tr>
		    			        <td>
		    				        <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td><b>ADDRESS</b></td>
                                        </tr>
                                        <tr>
                                            <td width='50%'><b>Permanent Address :</b><span style='margin-left:10px;'>{{student.communicationAddress}}</span></td>
                                            <td width='50%'><b>Panchayath/Municipality :</b><span style='margin-left:10px;'>{{student.panchayath}}</span></td>
                                        </tr>
                                        <tr>
                                            <td width='50%'><b>Local/ Guardian Address :</b><span style='margin-left:10px;'>{{student.guardianAddress}}</span></td>
                                            <td width='50%'><b>Ward No :</b><span style='margin-left:10px;'>{{student.ward}}</span></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr>
                                <td>
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td width='20%'><b>Father's Name</b></td>
                                            <td width='30%'>: {{student.salutation}} {{student.fatherName|upper}} </td>
                                            <td width='20%'><b>Mother's Name</b></td>
                                            <td width='30%'>: {{student.salutationMother}} {{student.motherName|upper}} </td>
                                        </tr>
                                        <tr>
                                            <td><b>Father's Occupation</b></td>
                                            <td>: {{student.fatherOccupation}}</td>
                                            <td><b>Mother's Occupation</b></td>
                                            <td>: {{student.motherOccupation}}</td>
                                        </tr>
                                        <!-- <tr>
                                            <td><b>Annual Income</b></td>
                                            <td>: {{student.fatherAnnualIncome}} - {{ student.fatherIncomeCurrency | split(' - ', 2)[1] }} </td>
                                            <td><b>Annual Income</b></td>
                                            <td>: {{student.motherAnnualIncome}} - {{ student.motherIncomeCurrency | split(' - ', 2)[1] }}</td>
                                        </tr> -->
                                        <tr>
                                            <td><b>Father's E-mail</b></td>
                                            <td>: {{student.fatherEmail}}</td>
                                            <td><b>Mother's E-mail</b></td>
                                            <td>: {{student.motherEmail}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Father's Phone Number</b></td>
                                            <td>: {{student.fatherMobileNo}}</td>
                                            <td><b>Mother's Phone Number</b></td>
                                            <td>: {{student.motherMobileNo}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Parent Annual Income</b></td>
                                            <td>: {{student.parentAnnualIncome}}</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
		                    <tr>
                                {% if ('tenthMarkEntry' in allFormFields or 'TENTH' in allFormFields) %}
                                <td style="vertical-align: baseline;" width="{{markDivwidth}}%">
        		                    <table class='table table-bordered m-b-0' width='100%'>
        		                        <tr>
        		    	                    <td colspan='2' align='center'><b>Class X or Equivalent</b>
                                            </td>
        		                        </tr>
        		                        <tr>
        		                            <td width="50%">Board </td>
                                            <td width="50%">: {{student.tenthBoardStream}}</td>
                                        </tr>
                                        <!-- <tr>
        		                            <td width="50%">Examination Passed </td>
                                            <td width="50%">: {{student.sslcMonth}} {{student.sslcYearOfPass}} </td>
                                        </tr> -->
        		                        <tr>
        		                            <td width="50%">Institution Studied </td>
                                            <td width="50%">: {{student.tenthInstitution}}</td>
                                        </tr>
                                        <tr>
        		                            <td width="50%">Reg. No. </td>
                                            <td width="50%">: {{student.sslcRegNumber}}</td>
        		                        </tr>
                                        <tr><td colspan="2"> <br> <td></tr>
                                    </table>
                                    <table class='table table-bordered m-b-0 print-table-border' width='100%' style='margin-top: 18px;'>
                                        <tr>
                                            <th width='60%'>Subject</th>
                                            <th width='20%'>Max. Marks</th>
                                            <th width='20%'>Obtained Marks</th>
                                        </tr>
                                        {% for mark in student.tenthMarkEntry %}
                                        <tr>
                                            <td align="left"> {{mark.subjectName}} </td>
                                            <td align="center"> {{mark.maxMark}} </td>
                                            <td align="center"> {{mark.markObtained}} </td>
                                        </tr>
                                        {% endfor %}
                                        <tr>
                                            <td  align="right"><b> Total :</b> </td>
                                            <td align="center">{{student.tenthMarkEntryMaxTotal}}</td>
                                            <td align="center">{{student.tenthMarkEntryTotal}}</td>
                                        </tr>
                                        <tr>
                                            <td  align="right"><b> Percentage of all Subjects : </b></td>
                                            <td align="center" colspan="2">{{student.tenthMarkEntryPercentage}}</td>
                                        </tr>
                                    </table>
                                </td>
                                {% endif %}
                                {% if ('eleventhMarkEntry' in allFormFields or 'ELEVENTH' in allFormFields) %}
                                <td style="vertical-align: baseline;" width="{{markDivwidth}}%">
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td colspan='2' align='center'><b>Class XI or Equivalent</b></td>
                                        </tr>
                                        <tr>
                                            <td width="50%" >Board</td>
                                            <td width="50%" >:{{student.eleventhBoardStream}}</td>
                                        </tr>
                                        <!-- <tr>
                                            <td width="50%" >Examination Passed</td>
                                            <td width="50%" >: {{student.eleventhMonthOfPass}} {{student.eleventhYearOfPass}} </td>
                                        </tr> -->
                                        <tr>
                                            <td width="50%"> Discipline</td>
                                            <td width="50%">: {{student.eleventhStream}} </td> 
                                        </tr>
                                        <tr>
                                            <td width="50%" >Institution Studied</td>
                                            <td width="50%" >: {{student.eleventhInstitution}} </td>
                                        </tr>
                                        <tr>
                                            <td width="50%" >Reg. No.</td>
                                            <td width="50%" >:{{student.eleventhRegNumber}} </td>
                                        </tr>
                                    </table>
                                    <br>
                                    <table class='table table-bordered m-b-0 print-table-border' width='100%'>
                                        <tr>
                                            <th width='60%'>Subject</th>
                                            <th width='20%'>Max. Marks</th>
                                            <th width='20%'>Obtained Marks</th>
                                        </tr>
                                        {% for mark in student.eleventhMarkEntry %}
                                        <tr>
                                            <td align="left"> {{mark.subjectName}} </td>
                                            <td align="center"> {{mark.maxMark}} </td>
                                            <td align="center"> {{mark.markObtained}} </td>
                                        </tr>
                                        {% endfor %}
                                        <tr>
                                            <td  align="right"> <b> Total :</b> </td>
                                            <td align="center">{{student.eleventhMarkEntryMaxTotal}}</td>
                                            <td align="center">{{student.eleventhMarkEntryTotal}}</td>
                                        </tr>
                                        <tr>
                                            <td  align="right"> <b>Percentage of all Subjects : </b></td>
                                            <td align="center" colspan="2">{{student.eleventhMarkEntryPercentage}}</td>
                                        </tr>
                                    </table>
                                </td>
                                {% endif %}
                                {% if ('twelfthMarkEntry' in allFormFields or 'TWELFTH' in allFormFields) %}
                                <td style="vertical-align: baseline;" width="{{markDivwidth}}%">
                                    <table class='table table-bordered' width='100%'>
                                        <tr>
                                            <td colspan='2' align='center'><b>Class XII or Equivalent</b></td>
                                        </tr>
                                        <tr>
                                            <td width="50%">Board</td>
                                            <td width="50%">: {{student.twelfthBoardStream}} </td>
                                        </tr>
                                        <tr>
                                            <td width="50%"> Examination Passed </td>
                                            <td width="50%">: {{student.hssMonth}} {{student.hssYearOfPass}} </td>
                                        </tr>
                                        <tr>
                                            <td width="50%"> Discipline</td>
                                            <td width="50%">: {{student.twelfthStream}} </td> 
                                        </tr>
                                        <tr>
                                            <td width="50%">Institution Studied</td>
                                            <td width="50%">: {{student.twelfthInstitution}}</td>
                                        </tr>
                                        <tr>
                                            <td width="50%"> Reg. No.</td>
                                            <td width="50%">:{{student.hssRegNumber}} </td>
                                        </tr>
                                        <tr>
                                            <td width="50%"> No of Attempts</td>
                                            <td width="50%">:{{student.hssChances}} </td>
                                        </tr>
                                        <tr><td colspan="2"> <br> <td></tr>
                                    </table>
                                    <table class='table table-bordered m-b-0 print-table-border' width='100%'>
                                        <tr>
                                            <th width='60%'>Subject</th>
                                            <th width='20%'>Max. Marks</th>
                                            <th width='20%'>Obtained Marks</th>
                                        </tr>
                                        {% for mark in student.twelfthMarkEntry %}
                                        <tr>
                                            <td align="left"> {{mark.subjectName}} </td>
                                            <td align="center"> {{mark.maxMark}} </td>
                                            <td align="center"> {{mark.markObtained}} </td>
                                        </tr>
                                        {% endfor %}
                                        <tr>
                                            <td  align="right"><b> Total :</b> </td>
                                            <td align="center">{{student.twelfthMarkEntryMaxTotal}}</td>
                                            <td align="center">{{student.twelfthMarkEntryTotal}}</td>
                                        </tr>
                                        <tr>
                                            <td  align="right"><b> Percentage of all Subjects :</b> </td>
                                            <td align="center" colspan="2">{{student.twelfthMarkEntryPercentage}}</td>
                                        </tr>
                                    </table>
                                </td>
                                {% endif %}
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%' style='border: 1px solid black;'>
                            <tr>
                                <td width="30%">
                                    <strong>ADD ON Course Choices: </strong>
                                    <span style="font-weight: 600;">
                                        {{ student.aDDONCOURSE ?: 'NO' }}
                                    </span>
                                </td>
                            </tr>
                        </table>
                        
                        {% if student.physicallyDisabled != 'NO'%}
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr>
                                <td>&nbsp;<b>Student's Disability:</b>&nbsp;&nbsp;{{ student.physicallyDisabled }}</td>
                            </tr>
                        </table>
                        {% endif %}
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr >
                                <td valign="top">
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td style=' width:100px;' valign="top" ><b>Other Details</b></td>
                                            <td style=' width:260px; border-right: 1px solid #000;' valign="top">
                                                <table class="table table-borderless" width="100%">
                                                    <tr>
                                                        <td style='line-height: 15px;' valign="top">
                                                            {% if not student.weightageQuota.subdivision %}
                                                                {{student.weightageQuota.weightageName}}
                                                            {% elseif student.weightageQuota.subdivision %}
                                                                {{student.weightageQuota.subDivisionName}} : {{student.weightageQuota.selected}}
                                                            {% endif %}
                                                        </td>
                                                        <td style='line-height: 15px;' valign="top">
                                                            {% for quotaChild1 in student.weightageQuota.childList %}
                                                                <table class="table table-borderless" width="100%">
                                                                    <tr>
                                                                        <td style='line-height: 15px;'  valign="top">
                                                                            {% if not quotaChild1.subdivision %}
                                                                                {{quotaChild1.weightageName}}
                                                                            {% elseif quotaChild1.subdivision %}
                                                                                {{quotaChild1.subDivisionName}} : {{quotaChild1.selected}}
                                                                            {% endif %}
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            {% endfor %}
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td valign="top" style=' width:360px;'>
                                            {% if 'batchTiming' in allFormFields %}
                                            <b>Batch Timing</b>:{{student.batchTiming}}
                                            {% endif %}
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan='3' style=' border-top: 1px solid #000;'><b>Place of Birth</b>:{{student.placeOfBirth}}</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr>
                                <td>
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td>
                                                <b>Statement of Purpose : If selected my objectives during the period of study at {{college.collegeCode}} are:</b><br/>
                                                <div style='font-size:10px;'>{{student.studentObjective}}</div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr>
                                <td>
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td>
                                                <div align='center' style='color:black;'><h3><b>UNDERTAKING</b></h3></div>
                                                <p style="text-align: justify;color: black;font-size: 12px;">
                                                I hereby declare that the information furnished is correct & authentic. I have read and agreed to the Terms & Conditions.</p>
                                                <br/>
                                                <table width='100%' style='color:black;' class='padding-print'>
                                                        <tr>
                                                            <td>
                                                            </td>
                                                            <td align='right'><img style='float: right;width: 150px;height: 40px; margin-top: -30px;margin-bottom: -5px; 'src="{{student.signImage}}" alt='' class='img-responsive' /></td>
                                                        </tr>
                                                        <tr>
                                                            <td width='50%'><b>Signature of the Parent / Guardian</b></td>
                                                            <td align='right'><b>Signature of the Student</b></td>
                                                        </tr>
                                                </table>
                                                <hr style='border-top: 1px solid black;'>
                                                <table class='table table-bordered m-b-0' width='100%'>
                                                    <tr>
                                                    <td><b>FOR OFFICE USE ONLY:</b></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table width='100%' style='color:black;margin-top:;' class='padding-print'>
                                                                <tr>
                                                                    <td align='left'><b>Date of Admission:</b></td>
                                                                    <td align='middle'><b>Manager/Chairman</b></td>
                                                                    <td align='right'><b>Principal's Signature</b></td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
                        
    </body>
</html>