
<?php $__env->startSection('title', 'مطالب و اخبار'); ?>

<?php $__env->startSection('breadcrumb'); ?>
    <!-- start page title -->
    <div class="row">
        <div class="col-12">
            <div class="page-title-box">
                <div class="page-title-right">
                    <ol class="breadcrumb m-0">
                        <li class="breadcrumb-item"><a href="javascript: void(0);">پنل کاربری</a></li>
                        <li class="breadcrumb-item active">اخبار و سوالات متداول</li>
                    </ol>
                </div>
                <h4 class="page-title">اخبار و سوالات متداول</h4>
            </div>
        </div>
    </div>
    <!-- end page title -->
<?php $__env->stopSection(); ?>

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

    <div class="row">
        <div class="col">
            <div class="card-box">
                <div class="clearfix">
                    <div class="clearfix">
                        <div class="float-left">
                            <h4 class="header-title">لیست اخبار و سوالات متداول</h4>
                            <p class="sub-header">لیست تمامی مطالب به همراه اطلاعات</p>
                        </div>
                        <a href="<?php echo e(route('panel.posts.create')); ?>" class="btn btn-primary waves-effect waves-light float-right mb-3 text-white"><i class="remixicon-file-edit-line mr-2 align-middle"></i>افزودن</a>
                    </div>
                </div>
                <?php if(session('success')): ?>
                    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>
                <div class="table-responsive">
                    <table class="table table-hover text-center">
                        <thead class="thead-light">
                            <tr>
                                <th>#</th>
                                <th>عنوان</th>
                                <th>نوع</th>
                                <th>وضعیت نمایش</th>
                                <th>تاریخ</th>
                                <th>گزینه ها</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td><?php echo e($post->id); ?></td>
                                    <td><?php echo e($post->title); ?></td>
                                    <td><?php echo post_type_label($post->type); ?></td>
                                    <td><?php echo post_status_label($post->status); ?></td>
                                    <td><?php echo jdate($post->created_at)->format('Y-m-d'); ?></td>
                                    <td>
                                        <a href="<?php echo e(route('panel.posts.edit', $post)); ?>" class="btn btn-secondary btn-xs">
                                            <span class="remixicon-file-edit-line "></span>
                                        </a>
                                        <a href="javascript:void(0)" class="btn btn-danger btn-xs" data-delete-url="<?php echo e(route('panel.posts.destroy', $post)); ?>">
                                            <span class="remixicon-file-reduce-line"></span>
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <td colspan="6" class="bg-light text-muted text-center">داده ای یافت نشد</td>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php echo e($posts->links()); ?>

            </div>
        </div><!-- end col -->
    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/iphoneun/public_html/peygirsho.ir/patronic/resources/views/panel/posts/list.blade.php ENDPATH**/ ?>