@if($book->restricted)
@if(userCan('restrictions-manage', $book))
@icon('lock'){{ trans('entities.books_permissions_active') }}
@else
@icon('lock'){{ trans('entities.books_permissions_active') }}
@endif
@endif
@if($page->chapter && $page->chapter->restricted)
@if(userCan('restrictions-manage', $page->chapter))
@icon('lock'){{ trans('entities.chapters_permissions_active') }}
@else
@icon('lock'){{ trans('entities.chapters_permissions_active') }}
@endif
@endif
@if($page->restricted)
@if(userCan('restrictions-manage', $page))
@icon('lock'){{ trans('entities.pages_permissions_active') }}
@else
@icon('lock'){{ trans('entities.pages_permissions_active') }}
@endif
@endif