<?php $__env->startSection('section'); ?>
    <!-- Page sidebar end-->

    <div class="page-body">
        <div class="container-fluid">
            <div class="row page-title">
                <div class="col-sm-6">
                    <h3>Title List</h3>
                </div>
                <div class="col-sm-6">
                    <nav>
                        <ol class="breadcrumb justify-content-sm-end align-items-center">
                            <li class="breadcrumb-item"> <a href="index.html">
                                    <svg class="svg-color">
                                        <use href="<?php echo e(asset('assets/svg/iconly-sprite.svg#Home')); ?>"></use>
                                    </svg></a></li>
                            <li class="breadcrumb-item">Title</li>
                            <li class="breadcrumb-item active">Title List</li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>

        <!-- Container-fluid starts-->
        <div class="container-fluid list-products">
            <div class="row">
                <div class="col-md-12 project-list">
                    <div class="card">
                        <div class="row">
                            <div class="col-md-6">
                                
                            </div>
                            <div class="col-md-6 d-md-block d-none">
                                <div class="form-group mb-0 me-0"> </div><a
                                    class="btn btn-primary d-flex align-items-center" href="<?php echo e(route('blog.add')); ?>">
                                    <svg class="feather">
                                        <use
                                            href="<?php echo e(asset('assets/svg/feather-icons/dist/feather-sprite.svg#plus-square')); ?>">
                                        </use>
                                    </svg>Add New Title </a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <!-- Invoice menu-->
                    <div class="card">

                        <div class="card-body">
                            <div class="table-responsive theme-scrollbar product-table">
                                <table class="display" id="basic-3">
                                    <thead>
                                        <tr>
                                            <th>S.no</th>
                                            <th>Name</th>
                                            
                                            <th>Status</th>
                                            <th>Created By</th>
                                            <th>Start date</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $__currentLoopData = $titles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blog): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        
                                            <tr>
                                                <td><?php echo e($loop->iteration); ?></td>
                                                <td><?php echo e($blog->title); ?></td>
                                                

                                                <td>
                                                    <a href="<?php echo e(route('title.status', $blog->id)); ?>">
                                                        <?php echo $blog->status == 1
                                                            ? '<span class="badge rounded-pill badge-success">Show</span>'
                                                            : '<span class="badge rounded-pill badge-danger">Hide</span>'; ?>

                                                    </a>
                                                </td>
                                                <td><?php echo e($blog->createdBy->name ?? 'N/A'); ?></td>
                                                <td>
                                                    <?php echo e($blog->created_at ? $blog->created_at->format('Y/m/d') : 'N/A'); ?>

                                                </td>
                                                <td>
                                                    <a href="<?php echo e(route('delete.title', $blog->id)); ?>"
                                                        class="btn btn-danger btn-xs" title="Delete">Delete</a>
                                                    <a href="<?php echo e(route('edit.title', $blog->id)); ?>"
                                                        class="btn btn-primary btn-xs" title="Edit">Edit</a>
                                                    <a href="<?php echo e(route('view.blog', $blog->id)); ?>"
                                                        class="btn btn-warning btn-xs" title="View">view</a>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Container-fluid ends-->
    <script src="<?php echo e(asset('assets/js/vendors/simple-datatables/dist/umd/simple-datatables.js')); ?>"></script>

    <script src="<?php echo e(asset('assets/js/product/product-list-custom.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ewx7upyjsani/public_html/androidwale.com/resources/views/admin/blogs/index.blade.php ENDPATH**/ ?>