@if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
@if($book->restricted)
@if(userCan('restrictions-manage', $book))
Book Permissions Active
@else
Book Permissions Active
@endif
@endif
@if($page->chapter && $page->chapter->restricted)
@if(userCan('restrictions-manage', $page->chapter))
Chapter Permissions Active
@else
Chapter Permissions Active
@endif
@endif
@if($page->restricted)
@if(userCan('restrictions-manage', $page))
Page Permissions Active
@else
Page Permissions Active
@endif
@endif
@endif
@include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree, 'pageNav' => $pageNav])