<?php
$fee_head=$this->uri->segment('3');
?>
<style>

</style>
<div class="container mt-3 mb-3 bg-white">
    <div class="row">
        <div class="col-sm-12 pt-3 pb-3">
            <ul class="breadcrumb bg-white">
                <li class="breadcrumb-item"><?php echo $this->session->userdata('ac_year'); ?></li> 
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Welcome">Home</a></li> 
                <li class="breadcrumb-item"><a href="<?php echo base_url(); ?>Fee/heads">Fee Heads</a></li>
                <li class="breadcrumb-item">Add Prospectus Fee</li>
            </ul> 
            <!--<div class="">-->
            <form method="post">
                <?php
                $table='fee_heads';
                $fee_head_title='';
                $get_fee_head_data=$this->NewFeeModel->get_item_data($fee_head,$table);
                if($get_fee_head_data){
                    foreach($get_fee_head_data as $fee_head_data){
                        $fee_head_title=$fee_head_data['title'];
                ?>
                    <div class="form-group">
                        <label><b><?php echo $fee_head_title;?></b></label>
                    </div>
                <?php
                    }
                }

                $course_table='courses';
                $all_courses=$this->NewFeeModel->get_data($course_table);
                if($all_courses){
                    foreach($all_courses as $courses){

                ?>
                <div class="form-group">
                    <label>Class <?php echo $courses['course'];?></label>
                    <input type="number" class="form-control" name="<?php echo $courses['id']; ?>" placeholder="Class <?php echo  $courses['course']; echo " "; echo $fee_head_title; ?>">
                </div>
                <?php
                    }
                }
                ?>
                    <input type="submit" name="add_fee" value="Add Fee Amount">
            </form>
            <!--</div>-->


        </div>
    </div>
</div>