<?php $__env->startSection('title', $post->title); ?>
<?php $__env->startSection('description', $post->excerpt); ?>

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

    <div class="row">

        <div class="col-lg-3 col-md-3 d-none d-md-block author-info">
            <div class="card ">
                <div class="card-body">
                    <div class="text-center">
                        作者：<?php echo e($post->user->name, false); ?>

                    </div>
                    <hr>
                    <div class="media">
                        <div align="center">
                            <a href="<?php echo e(route('users.show', $post->user->id), false); ?>">
                                <img class="thumbnail img-fluid" src="<?php echo e($post->user->avatar, false); ?>" width="300px"
                                     height="300px">
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 post-content">
            <div class="card ">
                <div class="card-body">
                    <h1 class="text-center mt-3 mb-3">
                        <?php echo e($post->title, false); ?>

                    </h1>

                    <div class="article-meta text-center text-secondary">
                        <?php echo e($post->created_at->diffForHumans(), false); ?>

                        ⋅
                        <i class="far fa-comment"></i>
                        <?php echo e($post->reply_count, false); ?>

                    </div>

                    <div class="post-body mt-4 mb-4">
                        <?php echo $post->content; ?>

                    </div>

                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update', $post)): ?>
                        <div class="operate">
                            <hr>
                            <a href="<?php echo e(route('posts.edit', $post->id), false); ?>" class="btn btn-outline-secondary btn-sm"
                               role="button">
                                <i class="far fa-edit"></i> 编辑
                            </a>
                            <form action="<?php echo e(route('posts.destroy', $post->id), false); ?>" method="post"
                                  style="display: inline-block;"
                                  onsubmit="return confirm('您确定要删除吗？');">
                                <?php echo e(csrf_field(), false); ?>

                                <?php echo e(method_field('DELETE'), false); ?>

                                <button type="submit" class="btn btn-outline-secondary btn-sm">
                                    <i class="far fa-trash-alt"></i> 删除
                                </button>
                            </form>
                        </div>
                    <?php endif; ?>

                </div>
            </div>

            
            <div class="card post-reply mt-4">
                <div class="card-body">
                    <?php echo $__env->renderWhen(Auth::check(),'posts._reply_box', ['post' => $post], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>
                    <?php echo $__env->make('posts._reply_list', ['replies' => $post->reply()->orderBy('created_at','desc')->with('user')->get()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
            </div>

        </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/show.blade.php ENDPATH**/ ?>