<div class="row">
            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <h2><strong>Ürün Liste</h2>
                        <div class="additional-btn">
                            <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                            <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                            <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                        </div>
                    </div>
                    <div class="widget-content">
                        <div class="data-table-toolbar">
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="toolbar-btn-action">
                                        <a href="<?php echo base_url("products/yenikayitFormu");?>" class="btn btn-darkblue-1"><i class="fa fa-plus-circle"></i> Yeni Kayıt</a>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="table-responsive">
                            <table data-sortable class="table table-hover table-striped">
                                <thead>
                                <tr>
                                    <th><i class="fa fa-sort"></i></th>
                                    <th>#ID</th>
                                    <th>Başlık</th>
                                    <th>Aktif / Pasif</th>
                                    <th data-sortable="false">İşlem</th>
                                </tr>
                                </thead>

                                <tbody class="sortable" data-url="<?php echo base_url("products/veriSirala");?>">
                                <?php
                                foreach ($items as $item)
                                {
                                    ?>
                                    <tr id="ord-<?php echo $item->id;?>" style="cursor: move;">
                                        <td><i class="fa fa-sort-amount-asc"></i></td>
                                        <td><?php echo $item->id;?></td>
                                        <td><?php echo $item->baslik_tr;?></td>
                                        <td>

                                            <input type="checkbox"
                                                   class="ios-switch ios-switch-primary ios-switch-sm isActive"
                                                   data-url="<?php echo base_url("products/veriAktifPasif/$item->id");?>"
                                                <?php echo ($item->isactive) ? "checked": "";?>/>
                                        </td>
                                        <td>
                                            <div class="btn-group btn-group-xs">
                                                <button data-url="<?php echo base_url("products/veriSil/$item->id")?>"
                                                        class="btn btn-danger btn-xs remove-btn">
                                                    <i class="fa fa-trash-o"></i> Sil
                                                </button>
                                            </div>
                                            <div class="btn-group btn-group-xs">
                                                <button onclick="location.href='<?php echo base_url("products/guncellemeFormu/$item->id")?>'" class="btn btn-info btn-xs btn-outline" type="button"><i class="fa fa-edit"></i> Düzenle</button>
                                            </div>
                                            <div class="btn-group btn-group-xs">
                                                <button onclick="location.href='<?php echo base_url("products/fotoYukleform/$item->id")?>'" class="btn btn btn-darkblue-1 btn-xs btn-outline" type="button"><i class="fa fa-image"></i> Resim</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <?php
                                }
                                ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <?php /*ADVANCED.JS ENGELLEDİĞİ İÇİN HER LİSTE SAYFASININ KENDİ İÇİNDE İNCLUDE EDİLECEK SCRİPT SATIRLARI*/?>
    

    <?php /*ADVANCED.JS ENGELLEDİĞİ İÇİN HER LİSTE SAYFASININ KENDİ İÇİNDE İNCLUDE EDİLECEK SCRİPT SATIRLARI*/?>

    <script src="<?php echo base_url("assets"); ?>/assets/js/sweetalert2.all.js"></script>
    <script>
        $(".remove-btn").click(function () {
            var $data_url = $(this).data("url");

            swal({
                title: 'Kayıt silinecek, Emin misiniz?',
                text: "DİKKAT... İşlem geri alınamaz!",
                type: 'warning',
                showCancelButton: true,
                confirmButtonColor: '#3085d6',
                cancelButtonColor: '#d33',
                confirmButtonText: 'Evet sil!',
                cancelButtonText: 'Hayır'
            }).then(function(result){
                if (result.value) {
                    window.location.href = $data_url;
                }
            });
        })
    </script>