public function report(PdfLibrary $library)
 {
     $library->load();
     $this->dompdf = new \DOMPDF();
     $products = Product::filterAndPaginateGeneral();
     $title = trans('products.report_general');
     $route = route('reports');
     return $html = view('products.report', compact('products', 'title', 'route'));
     $this->dompdf->load_html($html);
     $this->dompdf->get_css();
     $this->dompdf->render();
     return $this->dompdf->stream("products.pdf");
 }