

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

<?php $__env->startSection('content'); ?>
<div class="container">
    <?php if(Auth::user()->banned): ?>
        <h1><b>Banned</b></h1>
        <hr>
        <p>You've been banned from <?php echo e(config('app.name')); ?>.</p>
        <p>Reason: <code><?php echo e(Auth::user()->ban_reason); ?></code></p>
        <p>Banned until <b><?php echo e(date('m/d/Y', strtotime(Auth::user()->banned_until))); ?></b>.</p>
        <?php if(Auth::user()->banned_until->isPast()): ?>
            <form method="POST" action="<?php echo e(route('users.banned')); ?>" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>

                <button class="btn btn-sm btn-primary">Reactivate</button>
            </form>
        <?php endif; ?>
    <?php else: ?>
        <h1>Hey!</h1>
        <p>You're not banned, and you shouldn't be here!</p>
    <?php endif; ?>
</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/banned.blade.php ENDPATH**/ ?>