{# consolidatedMarkListTemplate10 #}
{# <!--
    use to render template
        |-> template for SCEK PG  Template6FCMC.twig
--> #}
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /><meta charset="UTF-8" />
<link href='http://fonts.googleapis.com/css?family=Book+Antiqua' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="{{additionalInfo.baseUrl}}libcommon/font/font_css/font_style.css" type="text/css" charset="utf-8"/>
<link href='https://fonts.googleapis.com/css2?family=Times New Roman:ital,wght@0,400;0,700;1,400;1,700&display=swap' rel='stylesheet'>
<link href="http://fonts.cdnfonts.com/css/bookman-old-style" rel="stylesheet">             
<style>
	.p-5 {
		padding: 5mm;
	}
	.primary-table table,
	.secondary-table table {
		border-collapse: collapse !important;
		page-break-inside: auto;
	}
	.primary-table th {
		text-align: center;
		background: none !important;
		height: 5mm !important;
		border: 1px solid #000;
		padding: 0 2mm !important;
	}
	.primary-table td {
		padding: 1mm;
		line-height: 15px !important;
		height: 6mm !important;
		border: 1px solid #000;
		text-align: center;
		vertical-align: middle !important;
	}
	.student-details td{
		padding: 1mm 2mm 1mm 2mm;
		line-height: 16px !important;
		height: 6mm !important;
		/* border: 1px solid #C0C0C0; */
		text-align: center;
		vertical-align: middle !important;
	}
	.border-full{
		border: 1px solid #000!important;
		border-style: solid solid solid solid!important;
	}
	.b-r-0{
		border: 1px solid #000!important;
		border-style: solid none solid solid!important;
	}
	.b-l-0{
		border: 1px solid #000!important;
		border-style: solid solid solid none!important;
	}
	.grade-table td {
		padding: 1mm;
		line-height: 15px !important;
		height: 6mm !important;
		border: 1px solid #000;
		text-align: center;
		vertical-align: middle !important;
	}
	.page-a4 {
		width: 100%;
		border: none;
		padding: 1mm 4mm 4mm 4mm;
		margin: auto;
		/* page-break-after: always; */
	}
	.border-0 {
		border: none !important;
	}
	.bold {
		font-weight: 700 !important;
	}
	.text-center {
		text-align: center;
	}
	.text-left {
		text-align: left !important;
	}
	.text-right {
		text-align: right !important;
	}
	.secondary-table td {
		/* font-family: 'Book Antiqua' !important; */
		font-weight: 700 !important;
		font-size: 10pt !important;
		padding: 10px 0px 0px 0px;
		/* line-height: 7px !important;
		height: 4mm !important; */
		border: none;
		/* text-align: left; */

	}
	.abbr td{
		font-size: 11pt !important;
	}
	@font-face {
		font-family: 'Trebuchet MS';
		src: url('Trebuchet MS.otf');
	}
	.border-top-0 td{
        border:1px solid #000 !important;
        border-style: none solid none solid!important;
    }
	.border-full{
        border:1px solid #000 !important;
        border-style: solid solid solid solid!important;
    }
	.unbold ,.unbold th{
		font-weight:normal!important;
	}

	.font-2{
		font-family: 'Times New Roman', serif!important;
	}
	.font-6{
		font-family: 'Bookman Old Style', sans-serif!important;
	}
	.font-7{
		font-family: 'Calibri', sans-serif!important;
	}
	.font-8{
		font-family: verdana, arial, 'sans serif';
	}
	.fsize-10{
		font-size: 10pt !important;
	}
	.fsize-12{
		font-size: 12pt !important;
	}
	.fsize-13{
		font-size: 13pt !important;
	}
	.p-l-p{
		padding-left:40%!important;
	}
	body{
		color: #181818!important;
	}
	.fsize-11{
		font-size: 11pt !important;
	}
	.p-l-30{
		padding-left:30px!important;
	}
	.p-r-80{
		padding-right:80px!important;
	}
	.p-l-10{
		padding-left:10px!important;
	}
    .college-header {
		height: 40mm;
		width: 35mm;
	}
	.left-right{
		padding:0 5mm 0 5mm;
		width:50%;
	}
	.b-t-b-0 td{
		border: 1px solid #000!important;
		border-style: none solid none solid!important;
	}
	.b-t-b-0:last-child > td {
		border: 1px solid #000!important;
		border-style: none solid solid solid!important;
	}
	.bold{
		font-weight:bold;
	}
	tr {page-break-inside: avoid !important;}
	
</style>
{% for student in data.studentData %}
	<div class="page-a4" style="page-break-after:always!important;min-height:297mm!important;">
	<div class='left-right' style="float:left;">
			<table style="width:100% !important; margin:10mm 0 0 0;" class="primary-table">
			<tr>
				<td colspan='4' class="border-0" width="100%"><img src="{{data.collegeData.collageLogo}}" class="college-header"></td>
			</tr>
			<tr>
				<td  colspan='4'class="border-0 font-2" width="100%" style="font-size:16pt;padding-top:3mm!important;"><b>SAINTGITS COLLEGE OF ENGINEERING (AUTONOMOUS)</b></td>
			</tr>
			<tr>
				<td colspan='4' class="border-0 font-2" width="100%" style="font-size:16pt;padding-top:3mm!important;padding-bottom:3mm;"><b>{{data.showDegreeName ? student.degreeDescription  | upper :''}} DEGREE EXAMINATIONS</b></td>
			</tr>
			<tr>
				<td colspan='4' class="border-0 font-2" width="100%" style="font-size:15pt;padding-top:3mm!important;padding-bottom:3mm;"><b>CONSOLIDATED STATEMENT OF GRADES</b></td>
			</tr>
		</table>
		<div style='width:100%;float:right; fsize-13' class='text-right font-2'>Date of Issue : {{data.dateOfIssue}}</div>
		<table style="width:100% !important; margin:0mm 0 0 0;" class="student-details">
			<tr>
				<td style='width:25%;' class="text-left border-full font-6">Name</td>
				<td style='width:25%;' class="text-left border-full font-6 bold">{{student.name| upper |raw}}</td>
				{% if data.disableCollegeRegisterNumber == false %}
					<td style='width:25%;' class="text-left border-full font-6">University Register Number </td>
					<td style='width:25%;' class="text-left border-full font-6">{{student.ktuCode|raw}}</td>
				{% else %}
					<td style='width:25%;' rowspan="2" class="text-left border-full font-6">Register Number </td>
					<td style='width:25%;' rowspan="2" class="text-left border-full font-6">{{student.regNo|raw}}</td>
				{% endif %}
			</tr>
			<tr>
				<td class="text-left border-full font-6">{{student.courseType == 'MTECH' ? 'Specialisation':'Branch'}}</td>
				<td class="text-left border-full font-6">{{student.streamDesc | upper |raw}}</td>
				{% if data.disableCollegeRegisterNumber == false %}
					<td class="text-left border-full font-6">College Register Number</td>
					<td class="text-left border-full font-6">{{student.regNo|raw}}</td>
				{% endif %}
			</tr>
			<tr>
				<td class="text-left border-full font-6">Year of Admission </td>
				<td class="text-left border-full font-6">{{student.admissionYear}}</td>
				<td class="text-left border-full font-6">Mode of Study</td>
				<td class="text-left border-full font-6">Regular</td>
			</tr>
			<tr>
				<td class="text-left border-full font-6">Month & Year of </br>Passing </td>
				<td class="text-left border-full font-6">{{student.failedStatus == 'FAILED' ? '' : student.lastExamMonthYear | upper}}</td>
				<td class="text-left border-full font-6">Duration of the Programme</td>
				<td class="text-left border-full font-6">4 years (8 Semesters)</td>
			</tr>
			<tr>
				<td class="text-left border-full font-6">Date of Birth </td>
				<td class="text-left border-full font-6">{{student.dob}} </td>
				<td class="text-left border-full font-6">Medium of Instruction</td>
				<td class="text-left border-full font-6">English</td>
			</tr>
			<tr>
				<td class="text-left border-full font-6">Total Credits</td>
				<td class="text-left border-full font-6">{{student.totalEarnedCredit}}</td>
				<td class="text-left border-full font-6">CGPA</td>
				<td class="text-left border-full font-6 bold">{{student.failedStatus == 'FAILED' ? '-': student.cgpa |number_format(2)}}</td>
			</tr>
			{% if student.courseType != 'MTECH'%}
				<tr>
					<td class="text-left border-full font-6" colspan="2">Classification of Degree</td>
					<td class="text-left border-full font-6" colspan="2"><b>{{student.class}}</b></td>
				</tr>
			{% endif%}
		</table>
		<div class="text-center"><i class="font-2 fsize-10">The following Grades were awarded to the Candidate</i></div>
		<table style="width:100% !important; margin:1mm 0 0 0;" class="primary-table font-8">
			<thead>
				<tr class="">
					<th width="3%">Sl No:</th>
					<th width="10%">Course Code</th>
					<th width="62%">Course Name</th>
					<th width="5%">Credits</th>
					<th width="5%">Grade</th>
					<th width="15%">Month & </br> Year of </br>Examination</th>
				</tr>
			</thead>
			{% set slNo = 0 %}
			{% for semIndex,semMark in student.academicTerms if semIndex <= 3 %}
				<tr class="subject-details fsize-10"><td class="text-center" colspan="6">{{semMark.semInFullName}} Semester SGPA - <b>{{semMark.failedStatus == 'FAILED'  ? '-': semMark.sgpa |number_format(2)}}</b>, Credits Earned : <b>{{semMark.semCredit}}</b></td></tr>
				{% for index,subject in semMark.subjects %}
					{% set slNo = slNo + 1 %}
					<tr class="subject-details fsize-10 b-t-b-0">
						<td>{{slNo}}</td>
						<td class="text-center">{{subject.code|raw}}</td>
						<td class="text-left">{{subject.name| upper |raw}}<sup>{{subject.isElective ? ' #':''}} {{(data.showMoocIndication and subject.isMooc) ? '*':''}}{{subject.hasEquivalentCourse ? ' $':''}}</sup></td>
						<td>{{subject.credit | round}}</td>
						<td>{{ subject.grade}}</td>
						<td>{{subject.examMonthYear }}</td>
					</tr>
				{% endfor %}
				{% if semMark.transferredCredit %}
				<tr class="subject-details fsize-10 b-t-b-0">
					<td></td><td></td><td class='text-left'>Credit Transferred</td><td>{{semMark.transferredCredit | round}}</td><td></td><td></td>
				</tr>
				{% endif %}
			{% endfor %}
		</table>
		<div style='width:100%;height:10mm'></div>
	</div>
	{# RIGHT SIDE #}
	<div class='left-right' style="float:right;">
		<table style="width:100% !important; margin:13mm 0 0 0;" class="primary-table font-8">
			<thead>
				<tr class="">
					<th width="3%">Sl No:</th>
					<th width="10%">Course Code</th>
					<th width="62%">Course Name</th>
					<th width="5%">Credits</th>
					<th width="5%">Grade</th>
					<th width="15%">Month & </br> Year of </br>Examination</th>
				</tr>
			</thead>
			{% for semIndex,semMark in student.academicTerms if semIndex >= 4 %}
				<tr class="subject-details fsize-10"><td class="text-center" colspan="6">{{semMark.semInFullName}} Semester SGPA - <b>{{semMark.failedStatus == 'FAILED'  ? '-': semMark.sgpa |number_format(2)}}</b>, Credits Earned : <b>{{semMark.semCredit}}</b> </td></tr>
				{% for index,subject in semMark.subjects %}
					{% set slNo = slNo + 1 %}
					<tr class="subject-details fsize-10 b-t-b-0">
						<td>{{slNo}}</td>
						<td class="text-center">{{subject.code|raw}}</td>
						<td class="text-left">{{subject.name| upper |raw }}<sup>{{subject.isElective ? ' #':''}} {{(data.showMoocIndication and subject.isMooc) ? '*':''}}{{subject.hasEquivalentCourse ? ' $':''}}</sup></td>
						<td>{{subject.credit | round}}</td>
						<td>{{ subject.grade}}</td>
						<td>{{subject.examMonthYear}}</td>
					</tr>
				{% endfor %}
				{% if semMark.transferredCredit %}
				<tr class="subject-details fsize-10 b-t-b-0">
					<td></td><td></td><td class='text-left'>Credit Transferred</td><td>{{semMark.transferredCredit | round}}</td><td></td><td></td>
				</tr>
				{% endif %}
			{% endfor %}
			<tr><td class="text-center" colspan='6'><b>***** </b>END OF STATEMENT <b>*****</b></td></tr>
		</table>
		<div style='padding-top:10mm;float:left'>
			<div style='width:100%;float:left;padding-left:10px' class='text-left'>SGPA - Semester Grade Point Average</div>
			<div style='width:100%;float:left;padding-left:10px' class='text-left'>CGPA - Cumulative Grade Point Average</div>
			<div style='width:100%;float:left;padding-left:10px' class='text-left'># - Elective{{student.hasEquivalentCourse ? ', $ - Credit Transfered Courses':''}} </div>
			{% if data.showMoocIndication %}
			<div style='width:100%;float:left;padding-left:10px' class='text-left'>* Stream-specific MOOC</div>
			{% endif %}
			<div><img style = 'width:30mm;height:30mm;' src="{{ getQr(student.qrData, 250, 0, 'L') }}"/></div>
		</div>
		<div style='width:100%;margin-top:50mm' class='font-7'>
			<div style='width:50%;float:left;'class='text-right'></div>
			<div style='width:50%;float:right;font-size:20px;padding-right:10mm'class='text-right'><b>CONTROLLER OF EXAMINATIONS</b></div>
		</div>
	</div>
	</div>
{% endfor %}
