{# <!--
    College header VIMALA COLLEGE ALLOTMENT PASS
--> #}
{% set markDivwidth = 50  %}
{% if ('eleventhMarkEntry' in allFormFields or 'ELEVENTH' in allFormFields) %}
	{% set markDivwidth = 100/3  %}
{% endif %}
{% set index = 1  %}

{% set collegeSite = college.collegeWebsite %}

<html>
	<head>
		<style>
			.page-1 td {
				line-height: 20px;
				font-size: 15px;
			}
			.page-2 td {
				line-height: 18px;
				font-size: 18px;
			}
			.page {
				width: 23cm;
				min-height: 29.7cm;
				padding: 0.1cm;
				margin-left: 0.5cm;
				background: white;
			}
			* {
				font-family: serif;
			}
			.pull-right {
				float: right !important;
			}
			.inner-table td {
				vertical-align: top;
			}
		</style>
	</head>
	<body>
		<div>
			<div>
				<table cellspacing='0' cellpadding='0' class='table table-bordered page-1 page' width='100%' style='color:black;border:1px solid black; page-break-after:always;'>
					<tr>
						<td align="center" style='margin:auto;'>
							<table class='table' width='100%'>
								 <tr>
                                    <td align='center'>
                                        <img style='width: 90px;' src="{{college.url}}/libcommon/images/college/{{college.collegeCode}}/logo.png">
                                    </td>
                                    <td width="70%" align="center">
                                        <div align='center' style="">
                                            <div style="font: bold 22px '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 width='15%'>
                                    </td>
                                    {# <td>
                                        <img style='float: right;width: 120px;height: 150px;'src="{{student.studentPhoto}}" alt='' class='img-responsive' />
                                    </td> #}
                                </tr>
							</table>
							<hr>
						</td>
					</tr>
					<tr>
						<td align='center' style='border:1px solid black;font-size:18px;'>
							<b>UG PROVISIONAL ALLOTMENT MEMO 2023</b>
						</td>
					</tr>
					<tr>
						<td>
							<br>
						</td>
					</tr>
					<tr>
						<td valign='top'>
							<table class='table inner-table' width='100%'>
                            <tr>
									<td valign='top' width='5%'>{{index}}.</td>
									<td width='40%'><b>Application No</b>
										<span class='pull-right'>:</span>
									</td>
									<td width='35%'><b>{{student.applicationNo}}</b></td>
									<td rowspan="7" align='center'>
										<img style='width: 140px;height: 150px;' src="{{student.studentPhoto}}" alt='' class='img-responsive'/>
									</td>
								</tr>
                                {% set index = index + 1  %}
								<tr>
									<td valign='top' width='5%'>{{index}}.</td>
									<td width='40%'><b>Name of Candidate</b>
										<span class='pull-right'>:</span>
									</td>
									<td width='35%'><b>{{student.studentFirstName|upper}}</b></td>
								</tr>
								{% set index = index + 1  %}
								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Date of Births
										<span class='pull-right'>:</span>
									</td>
									<td>{{student.dateOfBirth|date("d/m/Y")}}</td>
									{# <td rowspan="5" align='center'>
										<img style='width: 140px;height: 170px;' src="{{student.studentPhoto}}" alt='' class='img-responsive'/>
									</td> #}
								</tr>
								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Gender
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.gender|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

								<tr>
									<td valign='top'>{{index}}.</td>
									<td>Religion
										<span class='pull-right'>:</span>
									</td>
									<td>{{student.religion|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

								<tr>
									<td valign='top'>{{index}}</td>
									<td>Caste
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.caste|upper}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}

                                <tr>
									<td valign='top'>{{index}}.</td>
									<td>Seat Reservation
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.seatReservationQuotaId}}</td>
									{# <td width='20%'></td> #}
								</tr>
								{% set index = index + 1  %}
                                {# <tr>
									<td valign='top'>{{index}}.</td>
									<td>Communication Address
										<span class='pull-right'>:</span>
									</td>
									<td>
										{{student.commuAddressLine1}},
										{{student.commuAddressLine2}},
										{{student.commuPostOffice}},
										{{student.commuCity}},
										{{student.commuState}},
										{{student.commuCountry}},
										{{student.commuPin}}
									</td>
								</tr>
								{% set index = index + 1  %} #}
                                <table class='table table-bordered m-b-2 print-table-border' width='100%' style="">
                                    <tr >
                                        <td valign="top">
                                            <table class='table table-bordered m-b-0' width='100%'>
                                                <tr>
                                                    <td style=' width:100px;' valign="top" ><b>Weightage Quotas :</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">
                                                                    {% for quota in student.dataGridWeightageQuota %}
                                                                    <table class="table table-borderless" width="100%">
                                                                            <tr>
                                                                                <td style='line-height: 15px;'  valign="top">
                                                                                    {{quota.weightageQuota.weightageName}}
                                                                                </td>
                                                                                {# <td style='line-height: 15px;'  valign="top">
                                                                                    {{quota.weightageQuota.weightageDesc}}
                                                                                </td>
                                                                                <td style='line-height: 15px;'  valign="top">
                                                                                    {% for childList in quota.weightageQuota %}
                                                                                        {{childList.selected}}
                                                                                    {% endfor %}
                                                                                </td>  #}
                                                                            </tr>
                                                                        </table>
                                                                    {% endfor %}
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>

                                <table class='table table-bordered m-b-2 print-table-border' width='100%' >
                                    <tr>
                                        <td width='10%' height='50'><b>Sl No.</b></td>
                                        <td width='50%'><b>Subject</b></td>
                                        <td width='30%'><b>Position</b></td>
                                        <td width='10%'><b>Index Marks</b></td>
                                    </tr>
                                    {% for allotmentDetails in allotmentCourseDetails %}
                                        <tr>
                                            <td height='50'>
                                                {{allotmentDetails.prefNo}}
                                            </td>
                                            <td>
                                                {{allotmentDetails.patternCourseName}}
                                            </td>
                                            <td>
                                                {% if allotmentDetails.meritReservation %} 
                                                    {{allotmentDetails.meritReservation}} -
                                                {% elseif allotmentDetails.waitingListData|length > 0 %}

                                                    {% for wait in allotmentDetails.waitingListData %}
                                                        {{wait.waitReservation}} -
                                                    {% endfor %}
                                                {% endif %}
                                                {% if allotmentDetails.meritRank %} 
                                                    Merit - {{allotmentDetails.meritRank}}
                                                {% elseif allotmentDetails.waitingListData|length > 0 %} 
                                                    Wait -
                                                    {% for wait in allotmentDetails.waitingListData %}
                                                        {{wait.waitRank}}
                                                    {% endfor %}
                                                {% else %}
                                                    You are Not Included in Waiting List
                                                {% endif %}
                                            </td>
                                            <td>
                                                {% if allotmentDetails.meritIndexMark %} 
                                                    {{allotmentDetails.meritIndexMark}}
                                                {% elseif allotmentDetails.waitingListData|length > 0 %}
                                                    {% for wait in allotmentDetails.waitingListData %}
                                                        {{wait.waitingIndexMark}}
                                                    {% endfor %}
                                                {% endif %}
                                            </td>
                                        </tr>
                                    {% endfor %}
                                </table>
                                {# <tr>
                                    <td height='600px'></td>
                                </tr> #}
							</table>
						</td>
					</tr>
                    
				</table>

			</div>
		</div>
	</body>
</html>

