public function edit($id) { $glcoas = Glcoa::orderBy('acct')->get(); $gltrn = Gltrn::whereId($id)->firstOrFail(); return view('accounting.gltrn.edit')->with(['gltrn' => $gltrn, 'glcoas' => $glcoas]); }
public function glcoaPdf() { $users = Glcoa::all(); $view = view('reports.glcoas')->with('glcoas', $users); $contents = $view->render(); SELF::html2pdf($contents); }