<div class="">
    <div class="mb-3" style="float: right;">
        <button type="button" data-toggle="modal" data-target="#hiring_partner_modal" class="btn btn-warning btn-sm"><i class="fa fa-plus"></i> Add Image</button>
    </div>
    <table class="table table-bordered table-striped partial_view">
        <thead>
            <tr>
                <th>Image</th>
                <th>Title</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php $i = 1;
            $all_image = json_decode($course->course_hiring_partner, true);
           
            foreach ($all_image as $key => $image): ?>
                <tr>
                    <td><img src="<?php echo base_url() ?><?php echo $image['image'] ?>" width="50px"></td>
                    <td><?php echo $image['title'] ?></td>
                    <td>
                        <a class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')" href="<?php echo base_url() ?>admin/course/delete_course_hiring_partner_data/<?php echo $course->course_id ?>/<?php echo $key?>"><i class="fa fa-trash" aria-hidden="true"></i></a>
                    </td>
                </tr>
                <?php $i++; ?>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
