<?php 
$doc_id=$this->uri->segment('3');
// $doc_table='student_transfer_certificate';
$doc_table='reimbursment_cea_certificate';
$get_doc_data=$this->CertificateModel->get_item_data($doc_id,$doc_table);
if($get_doc_data){
    foreach($get_doc_data as $doc_data){
        $sch_no=$doc_data['sch_no'];
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Reimbursment-Cea-Certificate</title>
        <style>
            <link rel="preconnect" href="https://fonts.googleapis.com">
            <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
            <link href="https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,500;1,400&display=swap" rel="stylesheet"> 
            .w-100{width:100%;}
            .w-50-1{width:50%;float:left;height:100%;border-right:1px dotted red;}
            .w-50-2{width:50%;float:left;height:100%;}
            .w-2{width:0%;float:left;}
            img{height:80px;width:auto;}
            html{padding:0px;margin:0px;}
            body{padding:20px;margin:0px;font-size:13px;font-family: 'Exo 2', sans-serif !important;text-align:center;padding-top:40px;}
        </style>
    </head>
    <body>
        
    
        
    <div style="height:100%;width:100%;float:left;padding:0px;">
        <h1 style="font-size:18px;font-weight:700;padding:0px;margin:0px;text-align:center;"><u>Authority vide Government of India Ministry of Personal P,G and Department of Personal & Training New Delhi Order No. A-27102/02/2017-Estt. (AL) 16 August 2017</u></h1>
        <p style="padding:0px;margin:0px;text-align:center;">( This order shall be effective from 01 Jul 2017 )</p>
        
        <h2 style="font-size:18px;font-weight:700;padding:0px;margin:0px;margin-top:20px;">CERTIFICATE FROM THE HEAD OF INSTITUTION / SCHOOL</h2>
        <p style="font-size:13px;font-weight:600;padding:0px;margin:0px;">( FOR REIMBURSMENT CEA )</p>
        
        <!--<table style="width:100%;margin:0px;padding:0px;padding-top:15px;">-->
        <!--    <tr style="width:100% !important;">-->
        <!--        <th style="width:20%;background:;padding:0px;text-align:center;">-->
        <!--            <img src="<?php echo school_logo_full; ?>" style="">-->
        <!--        </th>-->
        <!--        <th style="width:80%;height:92px;background:;margin:0px;text-align:center;padding:0px;">-->
                    
        <!--            <h1 style="padding:0px;margin:0px;font-size:30px !important;font-weight:700 !important;"><?php echo school_full_name; ?></h1>-->
        <!--            <h2 style="padding:0px;margin:0px;font-size:18px !important;font-weight:500 !important;"><?php echo school_affiliation;?></h2>-->
                    
        <!--            <p style="padding:0px;margin:0px;font-size:13px;font-weight:500;"><?php echo school_address;?></p>-->
        <!--            <p style="padding:0px;margin:0px;font-size:13px;font-weight:500;">Contact :<?php echo contact1;?>, <?php echo contact2;?></p>-->
        <!--        </th>-->
        <!--    </tr>    -->
            
        <!--</table>        -->
        <hr>
        <table style="width:100%;margin:0px;padding:0px;">
            
            <tr style="width:100%;margin:0px;padding:0px;font-size:18px;font-weight:600;">
                <th style="text-align:left;padding-left:15px;">Ref. No. : <?php echo $doc_data['ref_no'];?></th>
                
                <th>Date : <?php echo date('d-m-Y',strtotime($doc_data['issuing_date']));?></th>
            </tr>
        </table>
        
    
       
        
        <div style="width:100%;">
            <p style="padding:15px;font-size:16px;line-height:40px;text-align:justify;">&nbsp; &nbsp;It is certified that <?php if($doc_data['gender'] =="male"){ echo "Master"; }else if($doc_data['gender'] =="female"){ echo "Kumari"; } ?> <b style="text-transform:uppercase;"><?php echo $doc_data['student_name'];?> </b> having Admission No. <b><?php echo $doc_data['sch_no']; ?></b> D.O.B. <b><?php echo date('d-m-Y',strtotime($doc_data['dob']));?></b> <?php if($doc_data['gender'] =='male'){ echo "S/o";}else if($doc_data['gender']=='female'){echo "D/o";} ?>  <b style="text-transform:uppercase;"><?php echo $doc_data['salutation']; echo " "; echo $doc_data['parent_name'];?></b> is a bonafide student of this school / Institution and studied in class <b><?php echo $doc_data['class']; ?></b> Sec <b><?php echo $doc_data['sec']; ?></b> Roll No. <b><?php echo $doc_data['roll_no']; ?></b> during the prvious Acedemic year <b><?php echo $doc_data['ac_year_start']."-".$doc_data['ac_year_end']; ?></b> namely <b><?php echo school_full_name; ?></b> vide affiliation Regd. No./Code <b><?php echo school_code; ?></b> and pattern <b><?php echo pattern; ?></b> curriculum.</p>
        </div>
        
        <div style="width:100%;padding-top:20px;padding-left:15px;font-size:18px;">
            <table class="table table-bordered" style="width:100%;">
                <tr style="width:100%;margin:0px;padding:0px;">
                    <td style="margin:0px;padding:0px;text-align:left">Place : <b><?php echo $doc_data['place'];?></b></td>
                    <td style="margin:0px;padding:0px;text-align:right;">Signature of Principal</td>
                </tr>
                <tr style="width:100%;margin:0px;padding:0px;">>
                    <td style="margin:0px;padding:0px;text-align:left;">Date : <b> <?php echo date('d-m-Y',strtotime($doc_data['issuing_date'])); ?> </b></td>
                    <td style="margin:0px;padding:0px;text-align:right;">(Affix School Stamp)</td>
                </tr>
                
            </table>
            <!--Date : <br>-->
            <!--COUNTERSIGNED-->
        </div>
        
        <h2 style="margin-top:30px;padding:0px;font-weight:700;font-size:18px;text-align:center;">SELF DECLARATION</h2>
        <div style="width:100%;">
            <p style="padding:15px;font-size:16px;line-height:40px;text-align:justify;">&nbsp; &nbsp; I <b style="text-transform:uppercase;"><?php echo $doc_data['parent_name']; ?></b> do hereby certify that my <?php if($doc_data['gender'] == "male"){ echo "Son"; }else if($doc_data['gender'] == "female"){ echo "Daughter"; } ?> namely <b style="text-transform:uppercase;"><?php echo $doc_data['student_name']; ?></b> Studied in Class <b><?php echo $doc_data['class']; ?></b> Sec <b><?php echo $doc_data['sec']; ?></b> Roll No. <b><?php echo $doc_data['roll_no']; ?></b> during previous Acedemic Year <b><?php echo $doc_data['ac_year_start']."-".$doc_data['ac_year_end']; ?></b> in <b><?php echo school_full_name; ?></b>. </p>
            <p style="padding:15px;font-size:16px;line-height:30px;text-align:justify;"> In the event of any change in the particulars given above which affect my eligibility for Children Education Allowance. I Undertake to Intimate the same promptly and refund excess payment, If any made to me. </p>
        </div>
        <div style="width:100%;padding-top:20px;padding-left:15px;font-size:18px;">
            <table class="table table-bordered" style="width:100%;">
                <tr style="width:100%;margin:0px;padding:0px;">
                    <td style="margin:0px;padding:10px;text-align:left;width:50%;"></td>
                    <td style="margin:0px;padding:10px;text-align:left;width:50%;"></td>
                <tr style="width:100%;margin:0px;padding:0px;">
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;">Place : </td>
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;"><b></b>Signature of Govt. Servent<b></b></td>
                </tr>
                <tr style="width:100%;margin:0px;padding:0px;">
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;">Date : </td>
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;">Name</td>
                </tr>
                <tr style="width:100%;margin:0px;padding:0px;">
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;"></td>
                    <td style="margin:0px;padding:0px;text-align:left;width:50%;">Designation</td>
                </tr>
                
            </table>
            <!--Date : <br>-->
            <!--COUNTERSIGNED-->
        </div>
        
    </div>    
    </body>
</html>
    
<?php
    }
}
?>    