<?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){
?>


<div class="container">
    <div class="row">
        <div class="col-sm-12 mt-3 mb-3 pt-3 pb-3 bg-white">
            
            <ul class="breadcrumb">
                <li class="breadcrumb-item">Home</li>
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Fee/all_student">Fee</a></li>
                <li class="breadcrumb-item"><a href="<?php echo base_url();?>Fee/pay/<?php echo $sid;?>"><?php echo $student_info['student_name'];?></a></li>
                <li class="breadcrumb-item">Ledger</li>
            </ul>
            
            <table class="table table-bordered table-striped">
                <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>
                </thead>
            </table>
            
            <table class="table table-bordered table-striped">
                <tr>
                    <th>Date</th>
                    <th>Particulars</th>
                    <th>Follow</th>
                    <th>Debit</th>
                    <th>Credit</th>
                    <th>Dr./Cr.</th>
                    <th>Balance</th>
                </tr>
            </table>
            
            
        </div>
    </div>
</div>


<?php
    }
}

?>