/**
* Display a listing of the book.
- *
* @return Response
*/
public function index()
/**
* Show the form for creating a new book.
- *
* @return Response
*/
public function create()
/**
* Display the specified book.
- *
* @param $slug
* @return Response
*/
/**
* Show the form for editing the specified book.
- *
* @param $slug
* @return Response
*/
/**
* Update the specified book in storage.
- *
* @param Request $request
* @param $slug
* @return Response
{
$book = $this->bookRepo->getBySlug($bookSlug);
$this->checkOwnablePermission('book-update', $book);
- $bookChildren = $this->bookRepo->getChildren($book);
+ $bookChildren = $this->bookRepo->getChildren($book, true);
$books = $this->bookRepo->getAll(false);
$this->setPageTitle('Sort Book ' . $book->getShortName());
return view('books/sort', ['book' => $book, 'current' => $book, 'books' => $books, 'bookChildren' => $bookChildren]);