<div class="table-responsive">
    <table data-sortable class="table table-hover table-striped table-bordered">
        <thead>
        <tr>
            <th style="text-align: center" class="w100"><i class="fa fa-sort"></i></th>
            <th style="text-align: center">#ID</th>
            <th style="text-align: center">Resim / Dosya</th>
            <th style="text-align: center">İşlem</th>
        </tr>
        </thead>

        <tbody>
        <?php
        foreach ($image_item as $image)
        {
            ?>
            <tr>
                <td><i class="fa fa-sort-amount-asc"></i></td>
                <td class="w100 ortala" style="text-align: center;"><?php echo $image->id; ?></td>
                <td style="text-align: center;">
                        <?php if ($gallery_type == "image") {?>
                            <img src="<?php echo base_url("$image->url"); ?>" style="width: 100px; border-radius: 5px;">
                        <?php
                        }
                        ?>

                        <?php if ($gallery_type == "file") {?>
                            <a href="<?php echo base_url("$image->url"); ?>" target="_blank"><i class="fa fa-folder" style="font-size: 25pt"></i></a>
                        <?php
                        }
                        ?>
                </td>
               
                <td class="w100" style="text-align: center;">
                    <div class="btn-group btn-group-xs">
                        <button data-url="<?php echo base_url("backend/galeri/fotoSil/$image->id/$item->gallery_type/$item->folder_name/$item->id") ?>"
                                class="btn btn-danger btn-xs remove-btn">
                            <i class="fa fa-trash-o"></i> Sil
                        </button>
                    </div>
                </td>
            </tr>
            <?php
        }
        ?>
        </tbody>
    </table>
</div>