public function report2pdf()
 {
     $users = User::all();
     $view = view('reports.users')->with('users', $users);
     $contents = $view->render();
     SELF::html2pdf($contents);
 }
 public function recipesPdf($offset = 0, $limit = 1)
 {
     $table = with(new Recipe())->getTable();
     $recipes = DB::select(DB::raw("SELECT * FROM {$table} ORDER BY category, name LIMIT {$offset}, {$limit}"));
     $view = view('reports.recipes')->with('recipes', $recipes);
     $contents = $view->render();
     SELF::html2pdf($contents);
 }
 public function glcoaPdf()
 {
     $users = Glcoa::all();
     $view = view('reports.glcoas')->with('glcoas', $users);
     $contents = $view->render();
     SELF::html2pdf($contents);
 }