<?php $__env->startSection('icerik'); ?>

    <div class="pagetitle">
        <h1>Blog Yönetimi</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="/">Site</a></li>
                <li class="breadcrumb-item active">Blog Yönetimi</li>
            </ol>
        </nav>
    </div><!-- End Page Title -->


    <section class="section dashboard">
        <div class="row">
            <div class="col-lg-5">
                <div class="card">
                    <div class="card-header"><i class="bx bx-plus-circle"></i> Blog İçeriği EKle</div>
                    <div class="card-body">

                        <form action="blogekle" class="arala" method="post" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            Başlık
                            <input required required type="text" class="form-control" name="baslik">

                           İçerik

                            <textarea name="icerik" cols="10" class="form-control" rows="20" ></textarea>

                            <button class="btn btn-success"><i class="bx bxs-save"></i>  Ekle</button>

                        </form>

                    </div>
                </div>
            </div>
            <div class="col-lg-7">
                <div class="card">
                    <div class="card-header"><i class="bx bx-pencil"></i> Geçmiş Bloglar</div>
                    <div class="card-body">
                        <table class="table table-hover">
                            <tr class="fw-bold">
                                <td>#</td>
                                <td>Başlık</td>
                                <td>Tarih</td>


                                <td>Düzenle</td>
                                <td>Sil</td>
                            </tr>
                            <?php $__currentLoopData = $blog; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($item->id); ?></td>

                                    <td><?php echo e($item->baslik); ?></td>
                                    <td><?php echo e(\Carbon\Carbon::createFromDate($item->tarih)->format('d/m/Y')); ?></td>


                                    <td><a href="blogduzenle?id=<?php echo e($item->id); ?>" class="btn btn-sm btn-primary"><i class="bx bx-edit"></i> Düzenle</a></td>
                                    <td><a onclick="silmi('/admin/blogsil?id=<?php echo e($item->id); ?>')" class="btn btn-sm btn-danger"><i class="bx bx-trash"></i> Sil</a></td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <style>
        .arala * {
            margin-bottom: 5px;
            margin-top: 5px;
            clear: both
        }

        .arabafoto { border-radius: 5px; border: solid 0.5px darkgray; padding: 3px}
    </style>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('title','Transfer Araçları'); ?>

<?php echo $__env->make('panel.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ucretsizscript/transferpro.ucretsizscript.net/resources/views/admin/blog.blade.php ENDPATH**/ ?>