<table class="table table-striped m-0">
    <thead>
    <tr>
        <th class="text-center">Никнейм</th>
        <th class="text-center">Уровень</th>
        <th class="text-center">Сервер</th>
        <th class="text-center">Последний сервер</th>
        <th class="text-center">Дата регистрации</th>
        <th class="text-center">Последний вход</th>
        <?php if(App\User::IsManagePermissions() == 'success'): ?>
            <th class="text-center"></th>
            <th class="text-center"></th>
            <th class="text-center"></th>
        <?php endif; ?>
    </tr>
    </thead>
    <tbody>
    <?php if(count($users) > 0): ?>
        <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td class="text-center"><strong><?php echo e($user->name); ?></strong></td>
                <td class="text-center"><?php echo e($user->level); ?></td>
                <td class="text-center"><?php echo e($user->server); ?></td>
                <td class="text-center"><?php echo e($user->lastserver); ?></td>
                <td class="text-center"><?php echo e($user->created_at); ?></td>
                <td class="text-center"><?php echo e($user->updated_at); ?></td>
                <?php if(\App\User::IsManagePermissions() == 'success'): ?>
                    <td class="text-center">
                        <a href="<?php echo e(route('admin.user.up', ['name' => $user->name])); ?>" style="min-width: 20px;" type="submit" class="btn btn-success btn-bordered waves-effect w-md waves-light">
                            <i class="dripicons-chevron-up"></i>
                        </a>
                    </td>
                    <td class="text-center">
                        <a href="<?php echo e(route('admin.user.down', ['name' => $user->name])); ?>" style="min-width: 20px;" type="submit" class="btn btn-primary btn-bordered waves-effect w-md waves-light">
                            <i class="dripicons-chevron-down"></i>
                        </a>
                    </td>
                    <td class="text-center">
                        <a href="<?php echo e(route('admin.user.delete', ['name' => $user->name])); ?>" style="min-width: 20px;" type="submit" class="btn btn-danger btn-bordered waves-effect w-md waves-light">
                            <i class=" dripicons-cross"></i>
                        </a>
                    </td>
                <?php endif; ?>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php else: ?>
        <tr>
            <td colspan="4">
                <div class="text-center alert alert-info alert-dismissible fade in" role="alert">
                    По запросу нет данных.
                </div>
            </td>
        </tr>
    <?php endif; ?>
    </tbody>
</table>

<div class="text-center">
    <?php echo e($users->links()); ?>

</div>