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