fix: update admin management
This commit is contained in:
@@ -101,13 +101,38 @@
|
||||
</td>
|
||||
|
||||
{{-- دسترسیها --}}
|
||||
<td style="min-width: 200px; max-width: 280px; white-space: normal;">
|
||||
@forelse($admin->permissions as $permission)
|
||||
<span class="badge bg-primary-subtle text-primary mb-1">{{ $permission->name }}</span>
|
||||
@empty
|
||||
<span class="text-muted fs-12">بدون دسترسی</span>
|
||||
@endforelse
|
||||
<td>
|
||||
|
||||
@if($admin->permissions->count())
|
||||
|
||||
<div class="d-flex flex-wrap gap-1">
|
||||
|
||||
@foreach($admin->permissions as $permission)
|
||||
|
||||
<span class="badge bg-light text-dark border">
|
||||
{{ $permission->name }}
|
||||
</span>
|
||||
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
@else
|
||||
|
||||
<span class="text-muted">
|
||||
بدون دسترسی
|
||||
</span>
|
||||
|
||||
@endif
|
||||
|
||||
</td>
|
||||
{{-- <td style="min-width: 200px; max-width: 280px; white-space: normal;">--}}
|
||||
{{-- @forelse($admin->permissions as $permission)--}}
|
||||
{{-- <span class="badge bg-primary-subtle text-primary mb-1">{{ $permission->name }}</span>--}}
|
||||
{{-- @empty--}}
|
||||
{{-- <span class="text-muted fs-12">بدون دسترسی</span>--}}
|
||||
{{-- @endforelse--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- وضعیت --}}
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user