{# <!--
    College header KMASC PG
--> #}
{% set markDivwidth = 50  %}
{% if 'eleventhMarkEntry' in allFormFields %}
    {% set markDivwidth = 100/3  %}
{% endif %}
<html>
    <head>
    <style>
        td {
            line-height: 20px;
        }
    </style>
    </head>
    <body class='page'>
        <div>
		<div class='sub-page'>
			<table cellspacing='0'  cellpadding='0' class='table table-bordered padding-print' width='100%' style='color:black;'>
			    <tr>
				    <td align='center'>
                        <br/>
                        <br/>
                        <img style='width: 75px;' src="{{college.url}}/libcommon/images/college/{{college.collegeCode}}/logo.png">
                        <h2 style='color:red;'><b>{{student.applicationNo}}</b></h2>
                    </td>
                    <td width="70%" align="center">
                        <div align='center' style="">
                            <div style="font: bold 20px 'Times New Roman';margin-top: 0px;margin-bottom: 4px">{{college.collegeName|upper}} {{college.autonomous?( college.autonomous|slice(0, 2)|upper):''}}{{college.autonomous?(college.autonomous|slice(2)|lower  ):''}}</div>
                        </div>
                        <div align='center'>
                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeAddress}} {{college.collegeAddress1}} {{college.collegeAddress2}}</p>
                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegePhone}}</p>
                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeWebsite}}</p>
                            <p style='margin: 0 0 0px;font-size: 12px;'>{{college.collegeEmail}}</p>
                        </div>
                    </td>
                    <td>
                        <b style=" float: right; margin-right:13px; ">Phase:{{student.admissionPhase}} </b>
                        <br>
                        <img style='float: right;width: 85px;height: 100px;'src="{{student.studentPhoto}}" alt='' class='img-responsive' />
                    </td>
                </tr>
        	    <tr>
                    <td colspan='3' align='center'>
                        <div align='center' style="font-size: 13px;width: 700px;padding-top:7px;">
                            <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>
                                    
                                </td>
                                <td></td> -->
                            </tr>
		                </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
		                    <tr>
                                <td width="100%" valign="top">    
                                    <table width="100%">
                                        <tr>
                                            <td colspan="2" align="center" style="background-color : lightgray; line-height: 31px;"><b>Degree Details</b></td>
                                        </tr>
                                        <tr>
                                            <td width="20%">Board</td>
                                            <td width="80%">: {{student.ugBoardStream}} </td>
                                        </tr>
                                        <tr>
                                            <td width="20%">Stream</td>
                                            <td width="80%">: {{student.ugStream}} </td>
                                        </tr>
                                        <!-- <tr>
                                            <td width="20%"> Examination Passed </td>
                                            <td width="80%">: {{student.uGMonth}} {{student.uGYearOfPass}} </td>
                                        </tr> -->
                                        <tr>
                                            <td width="20%">Institution Studied</td>
                                            <td width="80%">: {{student.previouseUniversityId}}</td>
                                        </tr>
                                        <tr>
                                            <td width="20%"> Reg. No.</td>
                                            <td width="80%">:{{student.ugRegNumber}} </td>
                                        </tr>
                                    </table>
                                
                                </td>
                                <!-- <td width="50%" valign="top">
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <th style="background-color : lightgray; " width="60%">Semester</th>
                                            <th style="background-color : lightgray; " width="20%">Obtained Marks</th>
                                            <th style="background-color : lightgray; " width="20%">Max Marks</th>
                                            <th style="background-color : lightgray; " width="20%">Percentage</th>
                                        </tr>
                                        {% for mark in student.ugMarkEntry %}
                                            <tr>
                                                <td align="center"> SEMESTER - {{mark.name}} </td>
                                                <td align="center"> {{mark.ugMarkEntryTotal}} </td>
                                                <td align="center"> {{mark.ugMarkEntryMaxTotal}} </td>
                                                <td align="center"> {{mark.ugMarkEntryPercentage}} </td>
                                            </tr>
                                        {% endfor %}
                                        <tr>
                                            <td  align="right"> <b>Total :</b> </td>
                                            <td align="center">{{student.ugMarkEntryTotal}}</td>
                                            <td align="center">{{student.ugMarkEntryMaxTotal}}</td>
                                            <td align="center">{{student.ugMarkEntryPercentage}}</td>
                                        </tr>
                                    </table>
                                </td> -->
                            </tr>
                        </table>
                        {% if student.UG.markList[0].markList is not empty %}
                        <table class="table table-bordered print-table-border" width="100%">
                            <thead>
                                <tr>
                                    <th colspan="5" class="text-center"><b>UG Mark Entry</b></th>
                                </tr>
                                <tr>
                                    <th>Semester</th>
                                    <th>Credit</th>
                                    <th>Credit Point</th>
                                    <th>WGPA</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for mark in student.UG.markList[0].markList %}
                                    <tr>
                                        <td>&nbsp{{ mark.subjectName }}</td>
                                        <td>&nbsp{{ mark.credit }}</td>
                                        <td>&nbsp{{ mark.creditPoint }}</td>
                                        <td>&nbsp{{ mark.overallWgpa }}</td>
                                    </tr>
                                {% else %}
                                    <tr>
                                        <td colspan="5" class="text-center">No records found</td>
                                    </tr>
                                {% endfor %}
                            </tbody>
                        </table>
                        {% endif %}
                        <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>Father's Name</b></td>
                                            <td>: {{student.salutation}} {{student.fatherName|upper}} </td>
                                            <td><b>Mother's Name</b></td>
                                            <td>: {{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>
		    			        <td>
		    				        <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td><b>ADDRESS</b></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <b>Permanent Address :</b>
                                                <span style='margin-left:50px;'>{{student.communicationAddress}}</span>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <table class='table table-bordered m-b-2 print-table-border' width='100%'>
                            <tr>
                                <!-- <td valign='top' style='width:360px;'>
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td style="width:40%;"><b>Sports :</b></td>
                                            <td>{{student.sportsItem}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Level of participation :</b></td>
                                            <td>{{student.sportsLevel}}</td>
                                        </tr>
                                    </table>
                                </td> -->
                                <!-- <td valign='top' style='width:360px;'>
                                    <table class='table table-bordered m-b-0' width='100%'>
                                        <tr>
                                            <td style="width: 40%;"><b>Disability :</b></td>
                                            <td>{{student.disability}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Disability Percentage:</b></td>
                                            <td>{{student.disabilityPercent}}</td>
                                        </tr>
                                    </table>
                                </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>Language :</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>