id(); $user = Staff::with('StaffDetail')->find($id); $site = SiteSetting::first(); return view('main-dashboard.report_payment_index',compact('user','site')); } public function reportCompoundList(){ $id = Auth::guard('sadmin')->id(); $user = Staff::with('StaffDetail')->find($id); $site = SiteSetting::first(); return view('main-dashboard.report_compound_index',compact('user','site')); } }