<?php $__env->startSection('title', isset($category) ? $category->title : '话题列表'); ?>

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

    <div class="row mb-5">
        <div class="col-lg-9 col-md-9 post-list">
            <?php if(count($posts) > 0 && $category = $posts[0]->category): ?>
                <div class="alert alert-info" role="alert">
                    <?php echo e($category->title, false); ?> ：<?php echo e($category->introduction, false); ?>

                </div>
            <?php endif; ?>
            <div class="card ">

                <div class="card-header bg-transparent">
                    <ul class="nav nav-pills">
                        <li class="nav-item ">
                            <a class="nav-link <?php echo e(checkQuery("order","recent",true), false); ?> "
                               href="?order=default">
                                最后回复
                            </a>
                        </li>
                        <li class="nav-item ">
                            <a class="nav-link <?php echo e(checkQuery("order","recent"), false); ?> "
                               href="?order=recent">
                                最新发布
                            </a>
                        </li>
                    </ul>
                </div>

                <div class="card-body">
                    
                    <?php echo $__env->make('posts._post_list', ['posts' => $posts], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                    <div class="mt-5">
                        <?php echo $posts->appends(Request::except('page'))->render(); ?>

                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-3 col-md-3 sidebar">
            <?php echo $__env->make('posts._sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    </div>

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

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Administrator\Desktop\1\jiangqiangdexiaocao-master\resources\views/posts/index.blade.php ENDPATH**/ ?>