<!-- Start right content -->
<div class="content-page">
    <!-- ============================================================== -->
    <!-- Start Content here -->
    <!-- ============================================================== -->
    <div class="content">
        <!-- Page Heading Start -->
        <?php /*<div class="page-heading">
            <h1><i class='fa fa-file'></i> <?php echo $viewTitle;?></h1>
            <h3><?php echo $viewTitle;?></h3>
        </div>*/?>
        <!-- Page Heading End-->

        <div class="row">
            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <h2><strong><?php echo $viewTitle;?></strong> 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-4">
                                    <form role="form">
                                        <input type="text" class="form-control" placeholder="Arama...">
                                    </form>
                                </div>
                                <div class="col-md-8">
                                    <div class="toolbar-btn-action">
                                        <a href="<?php echo base_url("referanslar/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("referanslar/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;?></td>
                                        <td>

                                            <input type="checkbox"
                                                   class="ios-switch ios-switch-primary ios-switch-sm isActive"
                                                   data-url="<?php echo base_url("referanslar/veriAktifPasif/$item->id");?>"
                                                <?php echo ($item->isactive) ? "checked": "";?>/>
                                        </td>
                                        <td>
                                            <div class="btn-group btn-group-xs">
                                                <button data-url="<?php echo base_url("referanslar/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("referanslar/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("referanslar/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 $this->load->view("includes/footer");?>
    </div>
    <!-- ============================================================== -->
    <!-- End content here -->
    <!-- ============================================================== -->

</div>
<!-- End right content -->