blue-twilight/resources/views/themes/base/partials/permission_checkbox.blade.php

7 lines
602 B
PHP

<div>
<label class="custom-control custom-checkbox" for="permission|{{ $key_id }}|{{ $permission->id }}">
<input type="checkbox" class="custom-control-input" id="permission|{{ $key_id }}|{{ $permission->id }}" name="permissions[{{ $object_id }}][]" value="{{ $permission->id }}"{{ call_user_func($callback, $callback_object, $permission) ? ' checked="checked"' : '' }}>
<span class="custom-control-indicator"></span>
<span class="custom-control-description">{{ trans(sprintf('permissions.%s.%s', $permission->section, $permission->description)) }}</span>
</label>
</div>