<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);

require_once '../../../resources/base_path_include.php';
require_once $base_path_to_learning_resources .'marksheet_template/template30/output30_p1.php';

require_once $base_path_to_learning_resources . "includes/connect.php";
require_once $base_path_to_learning_resources . "lib/function.php";
// this file contains output_report_header_and_term1_pt1_only()

$institutions = [
    'institution_name' => 'Rejoice Learning',
     'logo' => 'https://rejoicebilldesk.in/rjllearning_development/resources/assets/gvis_logo/gvis_logo.svg'
];

$branch = [
    'address' => 'Main Road, City',
    'pincode' => '123456',
    'branch_code' => 'CBSE-001',
    'contact_number' => '9876543210',
    'email' => 'school@example.com'
];

$students_array = [[
    'name' => 'Rahul Sharma',
    'admission_number' => 'ADM1234',
    'dob' => '15-06-2016',
    'fathername' => 'Ramesh Sharma',
    'mothername' => 'Sunita Sharma'
],
 [
    'name' => 'Rohit Verma',
    'admission_number' => 'ADM5678',
    'dob' => '22-08-2016',
    'fathername' => 'Amit Verma',
    'mothername' => 'Neha Verma'
    ]
];

$class_id   = 'III';
$section_id = 'A';

$array = [
    119 => 35, 120 => 5, 121 => 5, 122 => 45,
    127 => 30, 128 => 4, 129 => 5, 130 => 39,
    135 => 32, 136 => 5, 137 => 5, 138 => 42,
    143 => 28, 144 => 4, 145 => 5, 146 => 37,
    151 => 33, 152 => 5, 153 => 5, 154 => 43,
    159 => 158, 160 => 23, 161 => 25, 162 => 206
];

header("Content-Type: text/html");

output_p1(
    $institutions,
    $branch,
    $students_array,
    $class_id,
    $section_id,
    $array
);

?>