<?php $value = $batch_info; ?>
<div class="col-sm-12 white" >

    <div class="col-sm-12 gray text-center" >
        <div class="col-sm-9 text-left" style="padding: 20px">
            <address>
                <span style="font-weight: bold;margin-right: 50px">Batch Name : </span>
                <?php echo $value->course_batch_name; ?><br>

                <span style="font-weight: bold;margin-right: 53px">Course Tile : </span>
                <a href="<?php echo base_url() . $value->url; ?>"><?php echo $value->course_name; ?>
                </a><br>

                <?php
                $student_id = explode(',', $value->student_id);
                ?>                                
                <span style="font-weight: bold;margin-right: 6px">Number of student : </span>
                <a href="<?php echo base_url() ?>super-admin-batch-student">
                    <?php echo count($student_id); ?>
                </a><br>

                <span style="font-weight: bold;margin-right: 68px">Start date : </span>
                <?php
                if ($value->course_start_date) {
                    echo date('d F, Y', strtotime($value->course_batch_start_date));
                }
                ?><br>

                <span style="font-weight: bold;margin-right: 58px">Finish date : </span>
                <?php
                if ($value->course_start_date) {
                    echo date('d F, Y', strtotime($value->course_batch_finish_date));
                }
                ?><br>

                <span style="font-weight: bold;margin-right: 115px">By : </span>
                <a href="<?php echo base_url() ?>suddam-hossain/profile">
                    <?php echo $resource_person_info->person_first_name; ?>
                </a>
                <br>
            </address>
        </div>

        <div class="col-sm-3" style="padding-top: 10px">

            <a href="<?php echo base_url() . 'super-admin/edit-batch/' . $value->course_batch_id ?>">
                <i class="fa fa-edit" title="Edit"></i>
            </a>&nbsp;&nbsp;

            <a href="javascript:;" 
               onclick="return checkForAction('<?php echo base_url() . 'super-admin/delete-course-batch/' . $value->course_batch_id; ?>', 'Delete', <?php echo $value->course_batch_id; ?>)">
                <i class="fa fa-trash-o" title="Delete"></i> 
            </a>&nbsp;&nbsp;&nbsp;

            <a href="javascript:;" 
               onclick="return checkForAction('<?php echo base_url() . 'super-admin/cancel-course-batch/' . $value->course_batch_id; ?>', 'Cancel', <?php echo $value->course_batch_id; ?>)">
                <i class="fa  fa-remove" title="Cancel Class"></i>
            </a>&nbsp;&nbsp;&nbsp;

        </div>

    </div>
    <div class="col-sm-12"><br></div>
</div>