{# <!--
    College header SJCC 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.studentFirstName|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>Admission Mode </b></td>
                                <td>
                                    : {{student.admissionQuotasId}} 
                                </td>
                            </tr>
                            <tr>
                                <td><b>Student E-mail</b></td>
                                <td>
                                    : {{student.studentEmail}} 
                                </td>
                                <td>
                                    <b>Blood Group</b><br>
                                </td>
                                <td>
                                    : {{student.bloodGroupId}} 
                                </td>
                            </tr>
                            <tr>
                                <td><b>Student Mobile</b></td>
                                <td>
                                    : {{student.studentMobile}} 
                                </td>
                                <td>
                                    <b>Nationality </b><br>
                                </td>
                                <td>
                                    : {{student.nationality}}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>Religion </b><br>
                                </td>
                                <td>
                                    : {{student.religion}}
                                </td>
                                <td>
                                    <b>Caste </b><br>
                                </td>
                                <td>
                                    : {{student.caste}}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <b>Aadhar No </b><br>
                                </td>
                                <td>
                                    : {{student.aadharNo}}
                                </td>
                                <td>
                                    <b>Student Reservation </b><br>
                                </td>
                                <td>
                                    : {{student.studentReservationId}}
                                </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%'>
                                        <table class='table' width='100%'>
                                            <tr>
                                                <td width='25%'>
                                                    <b>Tenth Details</b>
                                                </td>
                                                <td width='75%'>
                                                    <table width='100%' class='table print-table-border'>
                                                        <tr>
                                                            <td align='center' width='50%'>Board</td>
                                                            <td align='center' width='50%'>{{student.tenthBoardStream}} </td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Institution Name</td>
                                                            <td align='center'>{{student.tenthInstitution}}</td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Register No</td>
                                                            <td align='center'>{{student.tenthRegNumber}}</td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Year of Passing </td>
                                                            <td align='center'>{{student.tenthYearOfPass}}</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>

                                        {# <table class='table' width='100%'>
                                            <tr>
                                                <td width='25%'>
                                                    <b>Eleventh Details</b>
                                                </td>
                                                <td width='75%'>
                                                    <table width='100%' class='table print-table-border'>
                                                        <tr>
                                                            <td align='center' width='50%'>Board</td>
                                                            <td align='center' width='50%'>{{student.eleventhBoardStream}} </td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Stream</td>
                                                            <td align='center'>{{student.eleventhStream}}</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table> #}

                                        {# <table class='table' width='100%'>
                                            {% if student.eleventhBoardStream == 'HSE' %}
                                            <tr>
                                                <td width='25%'>
                                                    Eleventh Mark Details
                                                </td>
                                                <td width='75%'>
                                                    <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>
                                            </tr>
                                            {% endif %}
                                        </table> #}


                                        <table class='table' width='100%'>
                                            <tr>
                                                <td width='25%'>
                                                    <b>Twelth Details</b>
                                                </td>
                                                <td width='75%'>
                                                    <table width='100%' class='table print-table-border'>
                                                        <tr>
                                                            <td align='center' width='50%'>Board</td>
                                                            <td align='center' width='50%'>{{student.twelfthBoardStream}} </td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Stream</td>
                                                            <td align='center'>{{student.twelfthStream}}</td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Institution Name and Address</td>
                                                            <td align='center'>{{student.twelfthInstitution}}</td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Register No</td>
                                                            <td align='center'>{{student.twelfthRegNo}}</td>
                                                        </tr>
                                                        <tr>
                                                            <td align='center'>Year of Passing</td>
                                                            <td align='center'>{{student.twelfthYearOfPass}}</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <table class='table' width='100%'>
                                            <tr>
                                                <td width='25%'>
                                                    <b> Twelth Mark Details </b>
                                                </td>
                                                <td width='75%'>
                                                    <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>
                                            </tr>
                                        </table>
                    
                                    </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>PARENT DETAILS</b></td>
                                        </tr>
                                        <tr>
                                            <td width='20%'><b>Father's Name</b></td>
                                            <td width='30%'>: {{student.salutation}} {{student.fatherName|upper}} </td>
                                            <td width='15%'><b>Mother's Name</b></td>
                                            <td width='35%'>: {{student.salutationMother}} {{student.motherName|upper}} </td>
                                        </tr>
                                        <tr>
                                            <td><b>Occupation</b></td>
                                            <td>: {{student.fatherOccupation}}</td>
                                            <td><b>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>E-mail</b></td>
                                            <td>: {{student.fatherEmail}}</td>
                                            <td><b>E-mail</b></td>
                                            <td>: {{student.motherEmail}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Phone Number</b></td>
                                            <td>: {{student.fatherMobileNo}}</td>
                                            <td><b>Phone Number</b></td>
                                            <td>: {{student.motherMobileNo}}</td>
                                        </tr>

                                        <tr>
                                            <td><b>GUARDAIAN DETAILS </b></td>
                                        </tr>
                                        <tr>
                                            <td><b>Guardian Name</b></td>
                                            <td>: {{student.parentName}}</td>
                                            <td><b>Guardian Mobile No</b></td>
                                            <td>: {{student.guardianMobileNo}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Guardian Email</b></td>
                                            <td>: {{student.guardianEmail}}</td>
                                            <td><b>Guardian Relation with the applicant</b></td>
                                            <td>: {{student.parentRelation}}</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.permanentAddress}}</span></td>
                                        </tr>
                                        <tr>
                                            <td><b>Communication Address :</b><span style='margin-left:15px;'>{{student.communicationAddress}}</span></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <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>ENTRANCE DETAILS</b></td>
                                        </tr>
                                        <tr>
                                            <td><b>Entrance Exam</b></td>
                                            <td>: {{student.entranceExam}} </td>
                                        </tr>
                                        <tr>
                                            <td><b>KEAM</b></td>
                                        </tr>
                                        <tr>
                                            <td width='20%'><b>Application No</b></td>
                                            <td width='30%'>: {{student.keamApplicationNo}}</td>
                                            <td width='15%'><b>Roll Number</b></td>
                                            <td width='35%'>: {{student.entranceRank}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>KEAM Rank</b></td>
                                            <td>: {{student.entranceRank1}}</td>
                                            <td><b>Paper1 Mark</b></td>
                                            <td>: {{student.entranceScore}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Paper2 Mark</b></td>
                                            <td>: {{student.paper2Mark}}</td>
                                            <td><b>Total</b></td>
                                            <td>: {{student.KeamTotal}}</td>
                                        </tr>

                                        <tr>
                                            <td><b>JEE </b></td>
                                        </tr>
                                        <tr>
                                            <td><b>Application No</b></td>
                                            <td>: {{student.jeeApplicationNo}}</td>
                                            <td><b>Roll Number</b></td>
                                            <td>: {{student.jeeRollNumber}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>JEE Rank</b></td>
                                            <td>: {{student.entranceRank2}}</td>
                                            <td><b>Physics Mark</b></td>
                                            <td>: {{student.physicsMark}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Chemistry Mark</b></td>
                                            <td>: {{student.chemistryMark}}</td>
                                            <td><b>Mathematics Mark</b></td>
                                            <td>: {{student.mathematicsMark}}</td>
                                        </tr>
                                        <tr>
                                            <td><b>Total Markk</b></td>
                                            <td>: {{student.jeeTotalMark}}</td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td>
                        <table class='table table-bordered m-b-2 print-table-border' style="page-break-before:always" width='100%'>
                            <tr>
                                <td width='25%'>
                                    <b>Branch Preferences</b>
                                </td>
                                <td width='75%'>
                                    <table width='100%' class='table print-table-border'>
                                        {% for choice in choices %}
                                            <tr>
                                                <td align='center' width='10%'>{{choice.prefNo}}</td>
                                                <td align='center' width='90%'>{{choice.patternCourseName|upper}} </td>
                                            </tr>
                                        {% endfor %}
                                    </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> #}
                        {# <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> #}
                    </td>
                </tr>

                <tr>
                    <td>    
                        <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>