

<?php $__env->startSection('title'); ?>
Forum
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="card border-0">
        <div class="card-header text-white bg-primary"><a class="text-white" href="<?php echo e(route('forum.index')); ?>"><?php echo e(config('app.name')); ?> Forum</a></div>
        <table class="table table-hover mb-0">
            <thead>
                <th class="p-1 pl-2" style="width: 70%">Category</th>
                <th class="p-1 text-center">Threads</th>
                <th class="p-1 text-center">Posts</th>
                <th class="p-1 text-center">Last Post</th>
            </thead>
            <tbody>
                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td>
                            <a class="text-decoration-none" href="<?php echo e(route('forum.category', $category->id)); ?>">
                                <div class="text-dark">
                                    <h4 class="mb-0"><?php echo e($category->name); ?></h4>
                                    <p class="mb-0"><?php echo e($category->description); ?></p>
                                </div>
                            </a>
                        </td>
                        <td class="align-middle text-muted text-center"><?php echo e($category->threads()->count()); ?></td>
                        <td class="align-middle text-muted text-center"><?php echo e($category->threads()->count() + $category->posts()->count()); ?></td>
                        <td class="align-middle text-muted text-center"><small><?php echo e($category->updated_at->diffForHumans()); ?></small></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

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