fix: checkbox standar di hak akses role
This commit is contained in:
@@ -112,15 +112,11 @@
|
|||||||
<i class="fa-solid fa-lock text-xs text-blue-400"></i>
|
<i class="fa-solid fa-lock text-xs text-blue-400"></i>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<label class="relative inline-flex items-center justify-center w-9 h-9 rounded-lg border-2 transition-all duration-150 cursor-pointer select-none
|
<input type="checkbox"
|
||||||
{{ $checked ? 'bg-blue-500 border-blue-500 shadow-sm shadow-blue-200' : 'bg-white border-gray-200 hover:border-blue-300 hover:bg-blue-50' }}">
|
name="permissions[{{ $role }}][]"
|
||||||
<input type="checkbox"
|
value="{{ $perm->id }}"
|
||||||
name="permissions[{{ $role }}][]"
|
{{ $checked ? 'checked' : '' }}
|
||||||
value="{{ $perm->id }}"
|
class="w-5 h-5 rounded-md border-gray-300 text-blue-600 focus:ring-blue-500 cursor-pointer">
|
||||||
{{ $checked ? 'checked' : '' }}
|
|
||||||
class="peer sr-only">
|
|
||||||
<i class="fa-solid fa-check text-white text-xs peer-checked:opacity-100 opacity-0 transition-opacity duration-150"></i>
|
|
||||||
</label>
|
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|||||||
Reference in New Issue
Block a user