<!-- Begin Page Content -->
<div class="container-fluid">

    <!-- Page Heading -->
    <div class="row column_title">
        <div class="col-md-12">
            <div class="page_title">
                <h2>Resources List</h2>
            </div>
        </div>
    </div>

            <button type="button" disabled style="float: right" onclick="location.href='<?= base_url() . 'dashboard/addevent' ?>'" class="btn btn-primary" >Add Resources</button>
    <!-- DataTales Example -->
   <br><br><br>
    <div class="card shadow mb-4">

        <div class="card-header py-3 ml-auto">

        </div>

        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered" id="songTable" width="100%" cellspacing="0">
                    <thead class="thead-dark">
                        <tr>
                            <th>Title</th>
                            <th>Image</th>

                            <th>Description</th>
                            <th>Type</th>


                            <th>Timing</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Asma lyo Hooyonimo/ Asma and her Pregnancy</td>
                           <td>   <img class="img-thumbnail" width="100" height="100" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAllBMVEX////vQDbW1tfuKBj+9vbuJRXuLB784N/609HwOjDV3N3odW7uNCjvPjPxMCLvSUD6zsz2qKX+8e/ycWj85+bzgnrvNyvze3T+8vD72tj3sq76ycX85OH5wL3tDQD59/bx7Ov4ubbn4uHo5OPd2traxsXjmZXrY1vtUUjcurjvRzvmZl31m5btAAD0ioP2n5n0kYvxXFNQiKFbAAAD8klEQVR4nO3dfVebMBjGYV6a2DhApCwVaavd3MpcV/X7f7klUGy19RhnkwfY/fuTHbDXKQ8p9cg8DyGEEEIIIYQQQv9dxdhyKa3vkvPEcovghhA45b71kiC4JQMuQ/tALQy+UQmr2JEwuCMSMgfARhjQDOPIxUnaCkmG0a0w+D54IcEwuha6H0b3QtfDSCB0PIwUQrfDSCJ0OoxEQofDSCV0N4xkQmfDSCcM7twMI6HQ0fWGVOjkekMrdHFbTCx0MIzUQvvDSC+0PYwdEFoexi4I7S7+nRBaHcaOCC0OY1eE9oaxM0Jrw+hI+MOAaGkY3Qjlz3MT4m1/hX5sArRzW+xIKFbnRu+ihWF0JPRF9evcqN4K/Ti5/2LS794KlVGYtOix0CwGIYQQkgchhBDSByGEENIHIYQQ0gchhBDSByGEENIHIYQQ0gchhBDSByGEENIHIYQQ0gchhBDSByGEENIHIYSfEsqEh3U8Eu020W57sVUV8/2iXgjlepyP6p3y+ZQ1GjEti6zZeFUspzxqn6sVX2T5XqUxkVKYjPf2y1b1a44uXx7uOpKt8MX2mfFD4UiF+tmAZ2mZzuo9p7IVZkValsVVc8BJ1G9hukiSJGzeufu4EWZ/9FMJOfPXmd68iZ6FK9bOaGL8U8iFzUvlE7XrPNoKt4eIJXvQh1yJVjgRbx+t40I/LJtd94VaPtWH5EMQyo3aVxwIfa7P3wc5AKHQp2kVHwh9ppaOjA1BqE9H/4iwvggpeu+FNYQdnqW+WKl/eJT9F+qTcZwcEfrc0+v+drVIom19E0qmF//JkSuNusre1OtILVxetvXjc2mz4qvlO9ropb3Uex4RjnbCXeZPSaUWKk/efDxL6x2HKNzu9ti85iNCbzeH669t5pccamE2uxpl6jaJbW8hDoTxk7d3LY3av+41/iHkwnoO9251D4TyUR30aQDr4ZvCsFDHHMJnmreEQp+kagyHK2T67lh9mhuqMF6omyqvXt4HKYwToYbQm9XryLCEC/XBM+Hs6VofMG++bhuU0Evny+W8aL5TLHnzfeKwhLuKVfudWi+FkbqMvP5mVz48HylL1/f8maSEN70T+pG6rXi9TYZcXlRVJcIwkfv/kUSsPvz8A7Cbv5mJVZ8/yrZOCk8ahBBCSB+EEEJIH4QQQkgfhBBCSB+EEEJIH4QQQkgfhBBCSB+EEEJIH4QQQkgfhBBCSB+EEEJIH4QQQkgfhBBCSB+EEEJIH4QQQkgfhBBCSB+EH8/82Thu4icXVqf7E95TVD8r7LTNu3WasvT9l/zRNmF33sWYrU8P9LylCHk3Cv25DaAqP+tGuSUfQgghhBBCCCGEOtxfiuyuUlWsa0oAAAAASUVORK5CYII="></td>
                           <td>Bilingual FGC Storybook</td>
                           <td>
                               PDF
                           </td>

                           <td>Wed, October 19/06:00 to 12:00</td>
                           <td> 

   
                                                    <a class="icon" style="text-decoration: none;" href="#">
                                    <button class="btn btn-info btn-block mt-2">Edit</button>
                                </a>
                                <a class="icon" style="text-decoration: none;" href="#">
                                    <button class="btn btn-danger btn-block mt-2">Delete</button>
                                </a>
</td>
                        </tr>
                        <?php
            if (!empty($podcasts)) {
              $count = 1;
              foreach ($podcasts as $id => $podcast) {
            ?>
                        <tr>
                            <td><?php echo $podcast['name']; ?></td>
                            <td>
                                <?php if ($podcast['imageUrl'] != "") { ?>
                                <img class="img-thumbnail" width="100" height="100" src="<?php echo $podcast['imageUrl']; ?>">
                                <?php } else { ?>
                                <img class="img-thumbnail" src="http://placehold.jp/100x100.png">
                                <?php } ?>
                            </td>
                            <td>

                                <?php if ($permissions != "ReadOnly") { ?>

                                <a class="icon" style="text-decoration: none;" href="<?php echo base_url(); ?>Instrumentalist/editPodcast/<?php echo $id; ?>">
                                    <button class="btn btn-info btn-block mt-2">Edit</button>
                                </a>
                                <a class="icon" style="text-decoration: none;" href="<?php echo base_url(); ?>Instrumentalist/deletePodcast/<?php echo $id; ?>">
                                    <button class="btn btn-danger btn-block mt-2">Delete</button>
                                </a>
                                <?php } ?>

                            </td>

                        </tr>
                        <?php }
            } ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</div>
<!-- /.container-fluid -->