/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { return view('host.work.work-order.create')->with('groups', Group::enable()->get())->with('categories', Category::all()); }
/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create($groupId) { return view('host.work.group.work-order.create')->with('enableGroup', Group::findOrFail($groupId))->with('categories', Category::all()); }