/**
  * Duyệt danh sách Tài liệu thuộc $category
  *
  * @param \Minhbang\Category\Category $category
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function show(Category $category)
 {
     $paths = $category->getRoot1Path(['id', 'title'], false);
     $breadcrumbs = [];
     foreach ($paths as $cat) {
         $breadcrumbs[route('ilib.category.show', ['category' => $cat->id])] = $cat->title;
     }
     $breadcrumbs['#'] = $category->title;
     $this->buildBreadcrumbs($breadcrumbs);
     $ebooks = $this->optionAppliedPaginate(Ebook::queryDefault()->published()->withEnumTitles()->categorized($category));
     $ebook_widget = new EbookWidget();
     return view('ilib::frontend.category.show', compact('category', 'ebooks', 'ebook_widget'));
 }