<?php
function template11($institutions, $branch, $students_array, $examination, $arrays, $result, $class_id, $section_id = null)
{
$array = array_merge([null], $arrays);
?>

<div class="container_marksheet_template1">
        <div class="content_container_template1">
            <div class="header_template1">
                <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>
                    <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="header_info_container">
                <div class="heading_report_template1">Progress Report</div>
                <div class="year_template1">Academic Session <?php echo $result; ?></div>
            </div>

           <div class="student-info-container">
				<table class="student_info_table_template1">
					<tbody>
						<tr>
							<td class="info-label">Name</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $students_array[0]['name']; ?></td>
							<td class="info-label">Admission Number</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $students_array[0]['admission_number']; ?></td>
						</tr>
						<tr>
							<td class="info-label">Father's Name</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $students_array[0]['fathername']; ?></td>
							<td class="info-label">Class</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $class_id; ?></td>
						</tr>
						<tr>
							<td class="info-label">Mother's Name</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $students_array[0]['mothername']; ?></td>
							<td class="info-label">Section</td>
							<td class="info-colon">:</td>
							<td class="info-value"><?php echo $section_id; ?></td>
						</tr>
					</tbody>
				</table>
			</div>

            <div class="evaluation-container">
                <table class="evaluation_table" border="1">
                    <thead>
                        <tr>
							<th colspan="3" class="report-title">Half Yearly</th>
						</tr>
                        <tr>
                            <th colspan="2">Subject</th>
                            <th>Evaluation</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th colspan="2" class="subject-header">English</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can write neatly</td>
                            <td><?php echo $array[1]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can narrate stories effectively</td>
                            <td><?php echo $array[2]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can recite poems with expressions</td>
                            <td><?php echo $array[3]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can recognize and read properly</td>
                            <td><?php echo $array[4]; ?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">Mathematics</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can identify the numbers correctly</td>
                            <td><?php echo $array[5]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can grasp the combination of numbers</td>
                            <td><?php echo $array[6]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can count and write in sequence</td>
                            <td><?php echo $array[7]; ?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">Punjabi</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can express the word</td>
                            <td><?php echo $array[8]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can write properly</td>
                            <td><?php echo $array[9]; ?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">E.V.S. / General Knowledge</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can identify</td>
                            <td><?php echo $array[10]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can write properly</td>
                            <td><?php echo $array[11]; ?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can express / understand the word / pictures</td>
                            <td><?php echo $array[12]; ?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">Conversation</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Can give conversation answer</td>
                            <td><?php echo $array[13]; ?></td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="remarks-container">
                <div class="remarks-box">
                    <strong>Remarks: 
                      <?php echo ucwords(strtolower($array[14])); ?>
                    </strong>
                </div>
            </div>

            <div class="signature-container">
                <div class="signature-box">
                    <div class="signature-line"></div>
                    <div class="signature-title">Class Incharge</div>
                </div>
                <div class="signature-box">
                    <div class="signature-line"></div>
                    <div class="signature-title">Principal / Headmistress</div>
                </div>
                <div class="signature-box">
                    <div class="signature-line"></div>
                    <div class="signature-title">Parent</div>
                </div>
            </div>

            <div class="date-container">
                <div class="date_footer">Date: <?php echo date('d-m-Y'); ?></div>
            </div>

			<div class="disclaimer">
                * Incase of any discrepancies in marksheet, please contact school administration.
            </div>

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