<?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <tr>
        <td><?php echo e($user->name); ?></td>
        <td><?php echo e($user->username); ?></td>
        <td><?php echo e($user->isAdmin() ? 'Администратор' : 'Техничар'); ?></td>
        <td>
            <?php if($user->is_active): ?>
                <span class="badge text-bg-success">Активен</span>
            <?php else: ?>
                <span class="badge text-bg-secondary">Неактивен</span>
            <?php endif; ?>
        </td>
        <td class="text-end">
            <a href="<?php echo e(route('users.password.edit', $user)); ?>" class="btn btn-sm btn-light border">Лозинка</a>
            <?php if($user->is_active): ?>
                <form method="POST" action="<?php echo e(route('users.deactivate', $user)); ?>" class="d-inline">
                    <?php echo csrf_field(); ?> <?php echo method_field('PATCH'); ?>
                    <button class="btn btn-sm btn-outline-danger" <?php if($user->is(auth()->user())): echo 'disabled'; endif; ?>>
                        Деактивирај
                    </button>
                </form>
            <?php else: ?>
                <form method="POST" action="<?php echo e(route('users.activate', $user)); ?>" class="d-inline">
                    <?php echo csrf_field(); ?> <?php echo method_field('PATCH'); ?>
                    <button class="btn btn-sm btn-outline-success">Активирај</button>
                </form>
            <?php endif; ?>
        </td>
    </tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <tr>
        <td colspan="5" class="text-center text-muted py-4">Нема резултати</td>
    </tr>
<?php endif; ?>
<?php /**PATH /Users/gego/Desktop/sterna/resources/views/users/_rows.blade.php ENDPATH**/ ?>