<?php
function template6($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">
			<div class="content_container_template1">

				<!-- School Header and Logo -->
				<div class="fullstretch header_template1" align="center">
					<div class="logo_div_img_template1">
						<img class="images" src="<?php echo $institutions['logo']; ?>">
					</div>
					<div class="header_institution">
						<span class="heading_template1"><?php echo $institutions['institution_name']; ?></span><br>
						<?php if ($branch['branch_code']) { ?>
							<span class="heading_code_info_template1"><?php echo $branch['branch_code']; ?></span><br>
						<?php } ?>
						<span class="heading_address_template1"><?php echo $branch['address'] . ($branch['pincode'] ? " - " . $branch['pincode'] : ''); ?></span><br>
						<span class="contact_template1" style="text-transform: lowercase;">
							<?php echo $branch['contact_number'] . ($branch['email'] ? ", &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>

				<!-- Student Information -->
				<div class="fullstretch margintop20" 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("Non - Medical")); ?></td>
							</tr>
							<tr>
								<td>Mother's Name</td>
								<td>:&nbsp;</td>
								<td><?php echo $students_array[0]['mothername']; ?></td>
							</tr>
						</table>
					</div>
				</div>

				<!-- Evaluation Table -->
				<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[1]; ?></td>
						</tr>

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

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

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

						<tr align="center">
							<td>Information Technology<br>(Add.)</td>
							<td>40</td>
							<td><?php
								if ($array[6] != "00" and $array[6] != "0")
									echo $array[6];
								else
									echo "-";
								?></td>
						</tr>

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

				<!-- Remarks -->
				<div class="fullstretch margintop40" align="start">
					<div class="student_info_template2">
						<table class="student_info_table_template2">
							<tr>
								<td><b>Remarks</b></td>
							</tr>
							<tr>
								<td><?php echo ucwords(strtolower($array[8])); ?></td>
							</tr>
						</table>
					</div>
				</div>

				<!-- Footer -->
				<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 margintop10" align="center" style="color:red; font-size:10pt;">
					* In case of any discrepancies in marksheet, please contact school administration.
				</div>

			</div>
		</div>
	</div>
<?php
}
?>