/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Director $director) { // Edit an exisiting director $brands = Brand::lists('short_name', 'id'); $statuses = Status::lists('name', 'id'); $genders = Gender::lists('name', 'id'); $titles = Title::lists('name', 'id'); return view('directors.edit', compact('director', 'brands', 'statuses', 'users', 'titles', 'genders')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit(Lead $lead) { // Edit an exisiting lead $stages = Stage::lists('name', 'id'); $sources = Source::lists('name', 'id'); $genders = Gender::lists('name', 'id'); $titles = Title::lists('name', 'id'); $users = User::lists('name', 'id'); return view('leads.edit', compact('lead', 'stages', 'sources', 'users', 'titles', 'genders')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $data['student'] = Student::find($id); $data['title'] = 'Edit ' . $data['student']->fname; $data['students_menu'] = 1; $data['gender'] = Gender::lists('gender', 'id')->prepend('Please Select'); $data['bloodGroups'] = BloodGroup::lists('blood_group', 'id')->prepend('Please Select'); $data['locals'] = Local::lists('local_name', 'id')->prepend('Please Select'); $data['states'] = State::lists('name', 'id')->prepend('Please Select'); $data['countries'] = Country::lists('name', 'id')->prepend('Please Select'); $data['parents'] = StudentParent::select(\DB::raw('concat (fname," ",lname) as full_name, id'))->lists('full_name', 'id')->prepend('Please Select'); $data['classes'] = StudentClass::lists('name', 'id')->prepend('Please Select'); $data['religions'] = Religion::lists('religion', 'id')->prepend('Please Select'); return view('admin.students.edit', $data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit() { // $gender = Gender::lists('gender', 'id'); $age = Age::lists('age', 'id'); $occupation = Occupation::lists('occupation', 'id'); $country = Country::orderBy('country')->lists('country', 'id'); //for alphabetic order $education = Education::lists('education', 'id'); //return Auth::User()->profile; return view('user.edit', compact('gender', 'age', 'occupation', 'country', 'education')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $data['title'] = 'Edit Staff'; $data['staff'] = Staff::find($id); $data['staff_menu'] = 1; $data['gender'] = Gender::lists('gender', 'id')->prepend('Please Select'); $data['countries'] = Country::lists('name', 'id')->prepend('Please Select'); $data['states'] = State::lists('name', 'id')->prepend('Please Select'); $data['locals'] = Local::lists('local_name', 'id')->prepend('Please Select'); $data['staff_types'] = StaffType::lists('staff_type', 'id')->prepend('Please Select'); return view('admin.staff.edit', $data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $genders = Gender::lists('gender_name', 'id')->all(); $category = Category::find($id); return view('admin.categories.edit', compact('category', 'genders')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $data['parent'] = StudentParent::find($id); $data['parents_menu'] = 1; $data['title'] = 'Edit Parent'; $data['gender'] = Gender::lists('gender', 'id')->prepend('Please Select'); $data['bloodGroups'] = BloodGroup::lists('blood_group', 'id')->prepend('Please Select'); $data['locals'] = Local::lists('local_name', 'id')->prepend('Please Select'); $data['states'] = State::lists('name', 'id')->prepend('Please Select'); $data['countries'] = Country::lists('name', 'id')->prepend('Please Select'); $data['religions'] = Religion::lists('religion', 'id')->prepend('Please Select'); return view('admin.parents.edit', $data); }