<!-- Sudah di modifikasi untuk Edit,Lihat,Hapus -->
<div class="table-responsive">
<table class="table table-responsive table-hover table-bordered default">
<colgroup>
<col class="col-xs-1">
<col class="col-xs-7">
</colgroup>
<thead>
<tr>
<th><code>#</code></th>
<th>Nama/Username</th>
<th>Akses</th>
<th>Email</th>
<th style="text-align: center">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$no = 1;
?>
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $items): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo $no++; ?></td>
<td>
<span class="text-bold-800 black"><?php echo $items->name; ?></span><br>
<?php echo $items->username; ?>
</td>
<td>
<?php if(!empty($items->roles)): ?>
<?php $__currentLoopData = $items->roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="badge badge-blue" style="margin: 2px" title="<?php echo e($item->desc); ?>"><?php echo $item->name; ?></span>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</td>
<td>
<?php echo $items->no_hp; ?><br>
<?php echo $items->email; ?>
</td>
<td>
<?php echo Form::open(['route' => ['users.destroy', $items->id], 'method' => 'delete']); ?>
<div class="btn-group" role="group" aria-label="Basic example">
<a data-target="#detailUser<?php echo e($items->id); ?>" data-toggle="modal" href="javascript:void(0)" class="btn btn-sm btn-outline-success"><i class="fa fa-eye"></i></a>
<a href="<?php echo route('users.edit', [$items->id]); ?>" class="btn btn-sm btn-outline-warning"><i class="fa fa-pencil"></i></a>
<?php echo Form::button('<i class="fa fa-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-outline-danger', 'onclick' => "return confirm('Are you sure?')"]); ?>
</div>
<?php echo Form::close(); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<?php /**PATH C:\laragon\www\web_mudahcoding_2024\resources\views/users/table.blade.php ENDPATH**/ ?>
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]