<?php $__env->startSection('title', $user->name . ' 的个人中心'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">

        <div class="col-lg-3 col-md-3 hidden-sm hidden-xs user-info">
            <div class="card">
                <img class="card-img-top" src="<?php echo e($user->avatar, false); ?>" alt="<?php echo e($user->name, false); ?>">
                <div class="card-body">
                    <h5><strong>个人简介</strong></h5>
                    <p><?php echo e($user->introduction, false); ?></p>
                    <hr>
                    <h5><strong>注册于</strong></h5>
                    <p><?php echo e($user->created_at->diffForHumans(), false); ?></p>
                    <hr>
                    <h5><strong>最后活跃</strong></h5>
                    <p title="<?php echo e($user->last_actived_at, false); ?>"><?php echo e($user->last_actived_at->diffForHumans(), false); ?></p>
                </div>
            </div>
        </div>
        <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
            <div class="card ">
                <div class="card-body">
                    <h1 class="mb-0" style="font-size:22px;"><?php echo e($user->name, false); ?> <small><?php echo e($user->email, false); ?></small></h1>
                </div>
            </div>
            <hr>

            
            <div class="card">
                <div class="card-body">
                    <ul class="nav nav-tabs">
                        <?php $tab = request()->get('tab'); ?>
                        <li class="nav-item">
                            <a class="nav-link bg-transparent <?php echo e(checkQuery('tab',''), false); ?>"
                               href="<?php echo e(route('users.show', $user->id), false); ?>">Ta 的话题</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link bg-transparent <?php echo e(checkQuery('tab','replies'), false); ?>"
                               href="<?php echo e(route('users.show', [$user->id, 'tab' => 'replies']), false); ?>">Ta 的回复</a>
                        </li>
                    </ul>
                    <?php if($tab == 'replies'): ?>
                        <?php echo $__env->make('users._replies', ['replies' => $user->reply()->with('post')->recent()->paginate(5)], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php else: ?>
                        <?php echo $__env->make('users._posts', ['posts' => $user->post()->recent()->paginate(5)], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?>
                </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/users/show.blade.php ENDPATH**/ ?>