<?php $__env->startSection('title'); ?>
<?php echo e($user->username); ?>'s Profile
<?php $__env->stopSection(); ?>

<?php $__env->startSection('meta'); ?>
<meta property="og:title" content="<?php echo e($user->username); ?>'s Profile - Tadah" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo e(url()->current()); ?>" />
<meta property="og:image" content="/images/tadaht.png" />
<meta property="og:description" content="" />
<meta name="theme-color" content="#0000FF">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container">
    <?php if($user->banned): ?>
        <div class="alert alert-danger" role="alert">
            This user is banned. Reason: <?php echo e($user->ban_reason); ?>

        </div>
    <?php endif; ?>
    <div class="row">
        <div class="col-md-5 text-center">
            <div class="card">
                <div class="card-header text-white <?php if($user->admin): ?> bg-danger <?php else: ?> bg-primary <?php endif; ?>"><?php echo e($user->username); ?></div>
                <div class="card-body">
                    <?php if(Cache::has('last_online' . $user->id)): ?>
                        <p class="text-center text-success">[ Online ]</p>
                    <?php else: ?>
                        <p class="text-center text-muted">[ Offline ]</p>
                    <?php endif; ?>
                    <p><img width="250" height="250" class="img-fluid" style="object-fit: contain;" src="<?php echo e(route('users.thumbnail', $user->id)); ?>" alt="<?php echo e($user->username); ?>"></p>
                    <div class="overflow-auto" style="max-width: 100%; max-height: 125px; text-align: left;"><?php echo e($user->blurb); ?></div>
                    <hr>
                    <b>Joined:</b> <?php echo e(date('m/d/Y', strtotime($user->joined))); ?>

                </div>
            </div>
        </div>
        <div class="col-md-7">
            <div class="card">
                <div class="card-header text-center text-white <?php if($user->admin): ?> bg-danger <?php else: ?> bg-primary <?php endif; ?>">Servers</div>
                <div class="card-body">
                    <?php if($servers->count() > 0 ): ?>
                        <?php $__currentLoopData = $servers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $server): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="card bg-primary text-truncate mt-2">
                                <a class="mt-1 mb-1 ml-2 text-white stretched-link" href="<?php echo e(route('servers.server', $server->id)); ?>"><i class="far fa-eye" aria-hidden="true"></i> <?php echo e($server->name); ?></a>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        This user has no servers.
                    <?php endif; ?>
                </div>
            </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 D:\project\tadah\tadah\resources\views/users/profile.blade.php ENDPATH**/ ?>