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

6 lines
496 B
PHP

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