<?php 
$sid=$this->uri->segment('3');
$acedemic_session=$this->session->userdata('acedemic_session');
$student_table='student';
$acedemic_session_table='academic_session_details';
$ace_session='';
$get_acedemic_session_info=$this->NewFeeModel->get_item_data($acedemic_session,$acedemic_session_table);
if($get_acedemic_session_info){
    foreach($get_acedemic_session_info as $ac_session_info){
        $ace_session=$ac_session_info['year_long'];
    }
}

$get_student_info=$this->NewFeeModel->get_item_data($sid,$student_table);
if($get_student_info){
    foreach($get_student_info as $student_info){
?>

<!DOCTYPE html>
<html>
    <head>
        <title>Student Fee Ledger</title>
        <style>
            .w-100{width:100%;border:2px solid red;}
            .w-50-1{width:50%;float:left;height:100%;border-right:1px dotted red !important;}
            .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:0px;margin:0px;font-size:13px;padding:25px;}
            table{width:100%;}
            /*tr{padding:10px;}*/
        </style>
    </head> 
    <body>
        <div class="w-100">
            
            <table style="width:100%;margin:0px;padding:0px;">
                <tr style="width:100% !important;padding:0px !important;">
                    <th style="background:;border-bottom:1px solid red;"><img src="<?php echo school_logo_full;?>" style=""></th>
                    <th style="margin:0px;text-align:center;padding:0px;border-bottom:1px solid red;padding-right:20px;">
                        <p style="padding:0px;margin:0px;font-size:26px;font-weight:700;"><?php echo school_full_name;?></p>
                        <p style="padding:0px;margin:0px;font-size:18px;font-weight:500;"><?php echo school_affiliation;?></p>
                        <p style="padding:0px;margin:0px;font-size:14px;font-weight:500;"><?php echo school_address;?></p>
                        <p style="padding:0px;margin:0px;font-size:14px;font-weight:500;">Contact :<?php echo contact1;?>, <?php echo contact2;?></p>
                    <p style="text-align:center;padding:0px;margin:0px;font-size:13px;font-weight:500;">Academic Year : <?php echo $ace_session;?></p>
                
                    </th>
                    <th style="background:;border-bottom:1px solid red;"><img src="<?php echo school_logo_full;?>" style=""></th>
                </tr>
            </table>
            
            <table id="student">
                <thead>
                    <tr>
                        <th style="text-align:right;">Student Name : </th>
                        <td colspan="4"><?php echo $student_info['student_name'];?></td>
                        <th style="text-align:right;">Class : </th>
                        <th></th>
                    </tr>
                    <tr>
                        <th style="text-align:right;" >Father's Name : </th>
                        <td colspan="4"><?php echo $student_info['father_name'];?></td>
                        <th style="text-align:right;">Mob. No. : </th>
                        <td><?php echo $student_info['contact_no'];?></td>
                    </tr>
                    <tr>
                        <th style="text-align:right;">Address : </th>
                        <th colspan="6"></th>
                    </tr>
                    <tr>
                        <th>Date</th>
                        <th>Particulars</th>
                        <th>Follow</th>
                        <th>Debit</th>
                        <th>Credit</th>
                        <th>Dr./Cr.</th>
                        <th>Balance</th>
                    </tr>
                </thead>
            </table>
            
        </div>
    </body>
</html>
<?php
    }
}

?>