@if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_*'))

	@component('components.layout.box-collapse', ['title' => __('roles'), 'id' => 'form-roles'])
		<div class="row">
			<div class="col-sm-12">
				@foreach ($roles as $id => $role)
					<div class="row pt-2 ml-0">
						@if (App\Repositories\Core\Auth\Users::hasPermission('users_crud_' . $role))
							<div class="col-6">
								<input type="checkbox" name="roles[{{ $id }}]" value="1" {{ in_array($id, $user['roles']) ? 'checked' : null }} class="iCheck" data-skin="square" data-color="blue">
								<label class="light text-uppercase ml-2">{{ $role }}</label>
							</div>
						@endif
					</div>
				@endforeach
			</div>
		</div>
	@endcomponent
@endif
