- $this->setPageTitle('Delete Book ' . $book->getShortName());
- return view('books/delete', ['book' => $book, 'current' => $book]);
- }
-
- /**
- * Shows the view which allows pages to be re-ordered and sorted.
- * @param string $bookSlug
- * @return \Illuminate\View\View
- */
- public function sort($bookSlug)
- {
- $book = $this->bookRepo->getBySlug($bookSlug);
- $this->checkOwnablePermission('book-update', $book);
- $bookChildren = $this->bookRepo->getChildren($book);
- $books = $this->bookRepo->getAll(false);
- $this->setPageTitle('Sort Book ' . $book->getShortName());
- return view('books/sort', ['book' => $book, 'current' => $book, 'books' => $books, 'bookChildren' => $bookChildren]);
- }
-
- /**
- * Shows the sort box for a single book.
- * Used via AJAX when loading in extra books to a sort.
- * @param $bookSlug
- * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
- */
- public function getSortItem($bookSlug)
- {
- $book = $this->bookRepo->getBySlug($bookSlug);
- $bookChildren = $this->bookRepo->getChildren($book);
- return view('books/sort-box', ['book' => $book, 'bookChildren' => $bookChildren]);
+ $this->setPageTitle(trans('entities.books_delete_named', ['bookName' => $book->getShortName()]));
+ return view('books.delete', ['book' => $book, 'current' => $book]);