<?php 
$doc_id=$this->uri->segment('3');
$doc_table='student_fee_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'];
        $y1=$doc_data['ac_year_start'];
        $y2=$doc_data['ac_year_end'];
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Student Fee 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"> */
            
            
            <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=Inconsolata:wght@200;300;400;500;600;700&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:60px;width:auto;}
            html{padding:0px;margin:0px;}
            body{padding:20px;margin:0px;font-size:13px;
            /*font-family: 'Exo 2', sans-serif !important;*/
                font-family: 'Inconsolata', monospace; 
            }
        </style>
    </head>
    <body>
        
    
        
        <div style="height:auto;width:100%;float:left;padding:0px;border:1px solid;">
 
            <div style="width:100%;text-align:center;margin:0px;padding:0px;height:130px;;display:block; border-bottom:1px solid;">
                <div style="width:20%;text-align:right;float:left;">
                    <img src="<?php echo school_logo_full; ?>" style="width:60px;margin-top:0px;padding-top:10px;">
                </div>
                <div style="width:80%;text-align:center;float:right;">
                    <h1 style="padding:0px;margin:0px;font-size:38px !important;font-weight:900 !important;text-transform:uppercase;display:flex;text-align:center;letter-spacing:2px;">
                            <?php echo school_full_name; ?><br>
                    </h1>
                    <h2 style="font-size:14px;margin:0px; padding :0px;font-weight:500;letter-spacing:2px;">Awas Vikas, Hanspuram Naubasta, Kanpur</h2>
                    <h2 style="padding:0px;margin:0px;font-size:14px !important;font-weight:500 !important;letter-spacing:2px;"><?php echo school_affiliation;?></h2>
                    <h2 style="padding:0px;margin:0px;font-size:18px !important;font-weight:700 !important;letter-spacing:2px;">School Code - UP-230</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;letter-spacing:2px;">Session : <?php echo $y1; ?> to <?php echo $y2; ?></p>
                </div>   
            </div>
            <!--<hr>-->
            <h2 style="padding:15px;margin:0px;text-align:center;font-size:22px;font-weight:700;"><u>TO WHOMSOEVER IT MAY CONCERN</u></h2>
            
            
            
            <div style="width:100%;height:177px;">
            
                <div style="width:70%;float:left;height:177px;padding-left:20px;">
                    <table style="margin-top:80px;padding:0px;width:100%;">
                    <tr style="width:100%;margin:0px;padding:0px;">
                        <th style="text-align:left;font-size:18px;">Sl. No. : <?php echo $doc_id;?></th>
                    </tr>
                    </table>
                </div>    
                <div style="width:20%;float:right;height:177px;padding-right:20px;">
                    <div style="width:138px !important;height:177px !important;border:1px solid !important;float:right;padding-top:auto;padding-bottom:auto;text-align:center;font-size:22px;"><br>Attested<br> Photo<br> of The<br> Student</div>
                </div>
            </div>  
            <div style="width:100%;padding-left:15px;padding-right:15px;margin:0px;">
                <div style="width:100%;"><br>
                 
                 <p style="font-size:18px;line-height:40px;text-align:justify;font-weight:500;letter-spacing:2px;">This is to certify that <b style="text-transform:uppercase;"><?php echo $doc_data['student_name'];?></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['father_name'];?></b> & <b style="text-transform:uppercase;">Mrs. <?php  echo $doc_data['mother_name'];?> </b>is studying in class <b><?php echo $doc_data['class']." ".$doc_data['section'];?></b>  . Session : <?php echo $y1."-".$y2; ?></p>
            
                <p style="font-size:18px;line-height:40px;text-align:justify;">
                <?php if($doc_data['gender'] =='male'){ echo "His";}else if($doc_data['gender']=='female'){echo "Her";} ?> composite fee from April to March is :- <b><u><?php echo $doc_data['total_fee']; ?></u></b>.<br> (In words) <b><u><?php echo $doc_data['total_fee_in_words']; ?> Rupees Only</u></b>.
                </p>
                 
                 
                </div>
                
            </div>
            <!--<div style="width:20%;float:right;padding:15px;">-->
            <!--    <div style="width:138px !important;height:177px !important;border:1px solid !important;float:right;padding-top:auto;padding-bottom:auto;text-align:center;font-size:22px;"><br>Attested<br> Photo<br> of The<br> Student</div>-->
            <!--</div>-->
        

        <div style="width:100%;font-size:18px;font-weight:600;padding:10px;">
            <br><br><br>
           <p style="font-size:18px;padding:10px;"><b>Principal</b></p>
           <br>
        </div>
        
    </div>    
    </body>
</html>
    
<?php
    }
}
?>    