File: /home/marketing.cfbon.ru/public_html/storage/framework/views/40ecb49790fa3958e4985199f5bc60b9.php
<?php $__env->startSection('title', 'Пользователи админ-панели'); ?>
<?php $__env->startSection('title_button'); ?>
<div class="col-md-1">
<a href="<?php echo e(route('admin-user.create')); ?>" class="btn btn-danger">Создать</a>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container mt-3 ms-2">
<div class="row">
<div class="col-md-11">
<table class="table table-hover">
<thead class="bg-light">
<tr>
<th scope="col">Роль</th>
<th scope="col">Логин</th>
<th scope="col">Электронная почта</th>
<th scope="col">Дата регистрации</th>
<th scope="col">Действие</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($roles[$user->role->value]); ?></td>
<td><?php echo e($user->name); ?></td>
<td><?php echo e($user->email); ?></td>
<td><?php echo e($user->created_at); ?></td>
<td>
<div class="d-flex">
<a href="<?php echo e(route('admin-user.edit', $user->id)); ?>" class="btn btn-outline-danger btn-sm me-2">Редактировать</a>
<form action="<?php echo e(route('admin-user.destroy', $user->id)); ?>" method="POST" class="d-inline">
<?php echo csrf_field(); ?>
<?php echo method_field('DELETE'); ?>
<button type="submit" class="btn btn-outline-secondary btn-sm" onclick="return confirm('Вы уверены, что хотите удалить этот админа?')">Удалить</button>
</form>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/marketing.cfbon.ru/public_html/resources/views/admin-users/index.blade.php ENDPATH**/ ?>