<?php
function template11($institutions, $branch, $students_array, $examination, $arrays, $result, $class_id, $section_id = null)
{
$array = array_merge([null], $arrays);
?>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Template 11</title>
	     <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
	<!--<link href="<?php echo 'https://rejoicebilldesk.in/rjllearning_development/resources/marksheet_template/template11/style_template11.css?key=' . time(); ?>" type="text/css" rel="stylesheet">-->
       <!-- Optional custom overrides -->
    <link href="<?php echo 'https://rejoicebilldesk.in/rjllearning_development/resources/marksheet_template/template11/custom_stylesheets/4/4_temp11.css?key=' . time(); ?>" 
          type="text/css" rel="stylesheet">
    
</head>
<body>
    <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>
                                <td colspan="2">Written</td>
                                <td><?php echo $array[5];?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Oral</td>
                                <td><?php echo $array[6];?></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[7]; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Can grasp the combination of numbers</td>
                                <td><?php echo $array[8]; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Can count and write in sequence</td>
                                <td><?php echo $array[9]; ?></td>
                            </tr>
                             <tr>
                                <td colspan="2">Written</td>
                                <td><?php echo $array[10];?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Oral</td>
                                <td><?php echo $array[11];?></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[12]; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Can write properly</td>
                                <td><?php echo $array[13]; ?></td>
                            </tr>
                             <tr>
                                <td colspan="2">Written</td>
                                <td><?php echo $array[14];?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Oral</td>
                                <td><?php echo $array[15];?></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[16]; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Can write properly</td>
                                <td><?php echo $array[17]; ?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Can express / understand the word / pictures</td>
                                <td><?php echo $array[18]; ?></td>
                            </tr>
                             <tr>
                                <td colspan="2">Written</td>
                                <td><?php echo $array[19];?></td>
                            </tr>
                            <tr>
                                <td colspan="2">Oral</td>
                                <td><?php echo $array[20];?></td>
                            </tr>
                               <tr>
                            <th colspan="2" class="subject-header">ART & CRAFT</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Enjoys drawing, colouring & pasting</td>
                            <td><?php echo $array[21];?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Follows instructions carefully</td>
                            <td><?php echo $array[22];?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">RHYMES</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Written</td>
                            <td><?php echo $array[23];?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Oral</td>
                            <td><?php echo $array[24];?></td>
                        </tr>
                        <tr>
                            <th colspan="2" class="subject-header">STORY</th>
                            <td></td>
                        </tr>
                        <tr>
                            <td colspan="2">Written</td>
                            <td><?php echo $array[25];?></td>
                        </tr>
                        <tr>
                            <td colspan="2">Oral</td>
                            <td><?php echo $array[26];?></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[27];?></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
    
                <div class="remarks-container">
                    <div class="remarks-box">
                        <strong>Remarks: 
                          <?php echo ucwords(strtolower($array[28])); ?>
                        </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>
</body>
</html>
<?php
}
?>