Lager-v3/resources/views/roles/show_data.blade.php

25 lines
768 B
PHP
Raw Normal View History

2022-09-28 07:38:08 +00:00
<h2>@lang('users')</h2>
@if(count($data->users) >= 1)
<table>
<tbody>
@foreach($data->users as $user)
<tr>
<td class="align-middle">
@can('users_view')
<a href="{{route('users.show',['user' => $user])}}"
target="_blank"
class="btn btn-success">
{{$user->username}}
</a>
@else
{{$user->username}}
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
@else
@lang('no_amount') @lang('users')
@endif