{strip}
	<div class="toggle_body_wrap on fn_card">
        {foreach $permission as $title => $items}
			<div class="card-body bg-light permission_block mb-2">
				<div class="heading_box"><h6 class="font-weight-semibold">{$items.name}</h6></div>
				<div class="permission_boxes row fn_perms_wrap">
                    {foreach $items.children as $key => $item}
						<div class="col-xl-2 col-lg-3 col-md-6 mb-3">
							<div class="permission_box">
								<div class="custom-control custom-checkbox check_block_box text-muted">
									<input type="checkbox" class="custom-control-input item_perm" id="{$item.fileName}_{$key}" name="manager[permissions][]"
									       value="{$item.fileName}" {if isset($manager->permissions) && $item.fileName|in_array:$manager->permissions}checked{/if} data-fouc>
									<label class="custom-control-label" for="{$item.fileName}_{$key}">{$item.name|escape}</label>
								</div>
							</div>
						</div>
                    {/foreach}
				</div>
			</div>
        {/foreach}
	</div>
{/strip}
