<?php $__env->startSection("content"); ?>
    <div class="content-header row">
    </div>
    <div class="content-body">
        <!-- istatistikler -->
        <div class="row hidden">
            <div class="col-xl-3 col-lg-6 col-12">
                <div class="card bg-gradient-directional-info">
                    <div class="card-content">
                        <div class="card-body">
                            <div class="media d-flex">
                                <div class="align-self-center">
                                    <i class="icon-book-open text-white font-large-2 float-left"></i>
                                </div>
                                <div class="media-body text-white text-right">
                                    <h3 class="text-white count"><?php echo e($habersayi); ?></h3>
                                    <span>Haber</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-12">
                <div class="card bg-gradient-directional-danger">
                    <div class="card-content">
                        <div class="card-body">
                            <div class="media d-flex">
                                <div class="align-self-center">
                                    <i class="icon-pencil text-white font-large-2 float-left"></i>
                                </div>
                                <div class="media-body text-white text-right">
                                    <h3 class="text-white count"><?php echo e($makalesayi); ?></h3>
                                    <span>Makale</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-12">
                <div class="card bg-gradient-directional-success">
                    <div class="card-content">
                        <div class="card-body">
                            <div class="media d-flex">
                                <div class="align-self-center">
                                    <i class="icon-picture text-white font-large-2 float-left"></i>
                                </div>
                                <div class="media-body text-white text-right">
                                    <h3 class="text-white count"><?php echo e($galerisayi); ?></h3>
                                    <span>Galeri</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-3 col-lg-6 col-12">
                <div class="card bg-gradient-directional-warning">
                    <div class="card-content">
                        <div class="card-body">
                            <div class="media d-flex">
                                <div class="align-self-center">
                                    <i class="icon-social-youtube text-white font-large-2 float-left"></i>
                                </div>
                                <div class="media-body text-white text-right">
                                    <h3 class="text-white count"><?php echo e($videosayi); ?></h3>
                                    <span>Video</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--/ istatistikler -->
        <?php if(accessCheck([1,2])): ?>
        <div class="row">
            <div class="col-md-6 col-sm-12">
                <div class="card border-top-warning">
                    <div class="card-header p-1">
                        <h4 class="card-title">Sistem Bilgisi</h4>
                    </div>
                    <div class="card-content">
                        <div class="card-body p-1">
                            <p><strong>Lisanslı Domain:</strong> <?php echo e(config('ayarlar.siteadresi')); ?></p>
                            <p><strong>Lisans Kodu:</strong> <?php echo e($sistemInfo['lisans']); ?></p>
                            <p><strong>Panel Versiyonu:</strong> v4.8 / <a href="<?php echo e(url('panel/surum-notlari')); ?>">Sürüm Notları</a></p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-md-6">
                <div class="card overflow-hidden mb-2">
                    <div class="card-content">
                        <div class="media align-items-stretch bg-info text-white rounded">
                            <div class="bg-info bg-darken-2 p-1 media-middle">
                                <i class="icon-book-open font-large-2 text-white"></i>
                            </div>
                            <div class="media-body p-1">
                                <h4 class="text-white">Toplam Haber</h4>
                                <span><a class="text-white" href="<?php echo e(url('panel/haberler')); ?>">Tüm Haberler <i class="la la-angle-double-right font-small-2"></i></a></span>
                            </div>
                            <div class="media-right p-1 media-middle">
                                <h1 class="text-white count"><?php echo e($habersayi); ?></h1>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card overflow-hidden mb-2">
                    <div class="card-content">
                        <div class="media align-items-stretch bg-warning text-white rounded">
                            <div class="bg-warning bg-darken-2 p-1 media-middle">
                                <i class="icon-pencil font-large-2 text-white"></i>
                            </div>
                            <div class="media-body p-1">
                                <h4 class="text-white">Toplam Makale</h4>
                                <span><a class="text-white" href="<?php echo e(url('panel/makaleler')); ?>">Tüm Makaleler <i class="la la-angle-double-right font-small-2"></i></a></span>
                            </div>
                            <div class="media-right p-1 media-middle">
                                <h1 class="text-white count"><?php echo e($makalesayi); ?></h1>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="card overflow-hidden mb-1">
                    <div class="card-content">
                        <div class="media align-items-stretch bg-danger text-white rounded">
                            <div class="bg-danger bg-darken-2 p-1 media-middle">
                                <i class="icon-picture font-large-2 text-white"></i>
                            </div>
                            <div class="media-body p-1">
                                <h4 class="text-white">Toplam Galeri</h4>
                                <span><a class="text-white" href="<?php echo e(url('panel/galeriler')); ?>">Tüm Galeriler <i class="la la-angle-double-right font-small-2"></i></a></span>
                            </div>
                            <div class="media-right p-1 media-middle">
                                <h1 class="text-white count"><?php echo e($galerisayi); ?></h1>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- son eklenen haberler 10 tane  -->
        <div class="row">
            <div id="recent-sales" class="col-12 col-md-12">
                <div class="card">
                    <div class="card-header">
                        <h4 class="card-title">Son Eklenen Haberler</h4>
                        <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
                        <div class="heading-elements">
                            <ul class="list-inline mb-0">
                                <li><a class="btn btn-sm btn-black box-shadow-2 round btn-min-width pull-right" href="<?php echo e(url('panel/haberler')); ?>">tümü</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="table-responsive">
                            <table class="table table-hover table-bordered table-xl mb-0">
                                <thead>
                                <tr>
                                    <th class="border-top-0 px-1">ID</th>
                                    <th class="border-top-0 px-1">Tarih</th>
                                    <th class="border-top-0 px-1">Kategori</th>
                                    <th class="border-top-0 px-1">Başlık</th>
                                    <th class="border-top-0 px-1 d-none">İşlemler</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $haber): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="px-1">#<?php echo e($haber->id); ?></td>
                                    <td class="px-1"><?php echo e(date('d-m-Y H:i',strtotime($haber->tarih))); ?></td>
                                    <td class="px-1">
                                        <span><?php echo e($haber->haberkat->baslik); ?></span>
                                    </td>
                                    <td class="px-1">
                                        <?php echo e($haber->baslik); ?>

                                    </td>
                                    <td class="text-truncate px-1 d-none">
                                        <a data-toggle="tooltip" target="_blank" title="Habere Git" href="#" class="btn btn-icon btn-pure secondary mr-1 text-dark p-0"><i class="icon-eye"></i></a>
                                        <a data-toggle="tooltip" title="Düzenle" href="#" class="btn btn-icon btn-pure secondary text-dark p-0 mr-1"><i class="icon-pencil"></i></a>
                                        <a data-toggle="tooltip" title="Sil" href="#" class="btn btn-icon btn-pure secondary text-danger p-0"><i class="icon-trash"></i></a>
                                    </td>
                                </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--/ son eklenen haberler 10 tane  -->
        <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush("customJs"); ?>
    <script>
        $('.count').each(function () {
            $(this).prop('Counter',0).animate({
                Counter: $(this).text()
            }, {
                duration: 1000,
                easing: 'swing',
                step: function (now) {
                    $(this).text(Math.ceil(now));
                }
            });
        });
    </script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush("customCss"); ?>

<?php $__env->stopPush(); ?>

<?php echo $__env->make('backend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/yeniistik/public_html/resources/views/backend/index.blade.php ENDPATH**/ ?>