<div class="card ">
    <div class="card-body">
        <a href="<?php echo e(route('posts.create'), false); ?>" class="btn btn-success btn-block" aria-label="Left Align">
            <i class="fas fa-pencil-alt mr-2"></i> 新建帖子
        </a>
    </div>
</div>

<?php if(count($activeUsers)): ?>
    <div class="card mt-4">
        <div class="card-body active-users pt-2">
            <div class="text-center mt-1 mb-0 text-muted">活跃用户</div>
            <hr class="mt-2">
            <?php $__currentLoopData = $activeUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activeUser): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a class="media mt-2" href="<?php echo e(route('users.show', $activeUser->id), false); ?>">
                    <div class="media-left media-middle mr-2 ml-1">
                        <img src="<?php echo e($activeUser->avatar, false); ?>" width="24px" height="24px" class="media-object">
                    </div>
                    <div class="media-body">
                        <small class="media-heading text-secondary"><?php echo e($activeUser->name, false); ?></small>
                    </div>
                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
<?php endif; ?>

<?php if(count($links)): ?>
    <div class="card mt-4">
        <div class="card-body pt-2">
            <div class="text-center mt-1 mb-0 text-muted">资源推荐</div>
            <hr class="mt-2 mb-3">
            <?php $__currentLoopData = $links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <a class="media mt-1" href="<?php echo e($link->link, false); ?>">
                    <div class="media-body">
                        <span class="media-heading text-muted"><?php echo e($link->title, false); ?></span>
                    </div>
                </a>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
<?php endif; ?>


<?php /**PATH C:\Users\Administrator\Desktop\1\jiangqiangdexiaocao-master\resources\views/posts/_sidebar.blade.php ENDPATH**/ ?>