<?php

function template13($institutions, $branch, $students_array, $examination, $arrays, $result, $class_id, $section_id = null)
{
$array = array_merge([null], $arrays);

?>

	<div class="container_marksheet_template1">

		<div class="border_template1"><!--border template is not being used-->

			<div class="content_container_template1">

				<!--template 3 logo-->
				<div class="fullstretch header_template1" align="center">
					<div class="logo_div_img_template1">
						<!--<div class="logo_left_template1" align="left">--><img class="images" src="<?php echo $institutions['logo']; ?>"><!--</div>-->
					</div>
					<div class="header_institution">
						<span class="heading_template1"><?php echo $institutions['institution_name']; ?></span><br>
						<span class="heading_code_info_template1"><?php echo $branch['branch_code']; ?></span><?php if ($branch['branch_code'] != "") {
																												?><br><?php
																												}
			?>
						<span class="heading_address_template1"><?php echo $branch['address'];
																	if ($branch['pincode'] != "") {
																		echo " - " . $branch['pincode'];
																	}
																	?></span><br><span class="contact_template1" style="text-transform: lowercase;"><?php echo $branch['contact_number'];
																									if ($branch['email'] != "") {
																										echo ", &nbsp;" . strtolower($branch['email']);
																									}
																									?></span>
					</div>
				</div>

				<div class=" fullstretch header_info_container" align="center">
					<div class="fullstretch heading_report_template1">Progress Report</div>
					<div class="year_template1">Academic Session <?php echo $result; ?></div>
				</div>


				<!--template 1 student info-->
				<!--template 1 student info-->
				<div class="fullstretch" align="center">
					<div class="student_info_template1">
						<table class="student_info_table_template1">
							<tr>
								<td>Name</td>
								<td>:&nbsp;</td>
								<td><?php echo $students_array[0]['name']; ?></td>  
							</tr>
							<tr>
								<td>Class</td>
								<td>:&nbsp;</td>
								<td><?php echo $class_id; ?></td>
							</tr>
							<tr>
								<td>Father's Name</td>
								<td>:&nbsp;</td>
								<td><?php echo $students_array[0]['fathername']; ?></td>
							</tr>
						</table>
					</div>
					<div class="student_info_template1">
						<table class="student_info_table_template1">
							<tr>
								<td>Admission Number</td>
								<td>:&nbsp;</td>
								<td><?php echo $students_array[0]['admission_number']; ?></td>
							</tr>
							<tr>
								<td>Stream</td>
								<td>:&nbsp;</td>
								<td><?php echo ucwordS(strtolower("Humanties")); ?></td>
							</tr>
							<tr>
								<td>Mother's Name</td>
								<td>:&nbsp;</td>
								<td><?php echo $students_array[0]['mothername']; ?></td>
							</tr>
						</table>
					</div>
				</div>

				<!--template table 3 container-->
				<div class="fullstretch margintop20" align="center">

					<table class="evaluation_table" border="1">
						<tr align="center">
							<th>Subject</th>
							<th><?php echo ucwords(strtolower($examination)); ?><br>Maximum Marks</th>
							<th>Marks Obtained</th>
						</tr>

						<tr align="center">
							<td>English</td>
							<td>40</td>
							<td><?php echo $array[5]; ?></td>
						</tr>

						<tr align="center">
							<td>Physical Education</td>
							<td>40</td>
							<td><?php echo $array[6]; ?></td>
						</tr>

						<tr align="center">
							<td><?php echo ucwords(strtolower($array[1])); ?></td>
							<td>40</td>
							<td><?php echo $array[7]; ?></td>
						</tr>

						<tr align="center">
							<td><?php echo ucwords(strtolower($array[2])); ?></td>
							<td>40</td>
							<td><?php echo $array[8]; ?></td>
						</tr>

						<tr align="center">
							<td><?php echo ucwords(strtolower($array[3])); ?></td>
							<td>40</td>
							<td><?php echo $array[9]; ?></td>
						</tr>

						<tr align="center">
							<td><?php echo ucwords($array[4] . ' (Add.)'); ?></td>
							<td>40</td>
							<td><?php echo $array[10]; ?></td>
						</tr>

						<tr align="center">
							<td>Information Technology (Add.)</td>
							<td>40</td>
							<td><?php echo $array[11]; ?></td>
						</tr>

						<tr align="center">
							<td style="text-transform: uppercase;font-weight: bold;">Total</td>
							<td>200</td>
							<td><?php echo $array[12]; ?></td>
						</tr>

					</table>
				</div>

				<div class="fullstretch margintop20" align="center">
					<div class="student_info_template1">
						<table class="student_info_table_template1">
							<tr>
								<td><b>Remarks</b></td>
							</tr>
							<tr>
								<td><?php echo ucwords(strtolower($array[13])); ?></td>
							</tr>
						</table>
					</div>
				</div>

				<div class="fullstretch margintop50" align="center">
					<div class="student_info_template1">
						<table class="student_info_table_template1">
							<tr>
								<td>Class Incharge</td>
							</tr>
						</table>
					</div>
					<div class="student_info_template1">
						<table class="student_info_table_template1">
							<tr>
								<td>Principal / Headmistress</td>
							</tr>
						</table>
					</div>
				</div>

			
				<div class="fullstretch margintop20" align="center" style="color:red;font-size:10pt;">* Incase of any discrepancies in marksheet, please contact school administration.</div>
			</div>
		</div>

	</div>

<?php
}
?>