public function getIndex() { $groups = Group::where("user_id", "=", Auth::user()->id)->get(); return view('newsletters.index')->with("page_title", "Newsletters")->with("groups", $groups); }
public function getIndex() { return view("groups.index")->with("groups", Group::where("user_id", "=", Auth::user()->id)->get())->with("page_title", "Groups"); }
public function getUploadFromExcel() { $groups = Group::where("user_id", "=", Auth::user()->id)->get(); return view("subscribers.upload_from_excel")->with("page_title", "Import Subscribers From Excel")->with("groups", $groups); }