/** * Remove the specified resource from storage. * * @param int $iid industry_id * @param int $id jobtype_id * @return Response */ public function destroy($iid, $id) { $industry = Industry::findOrFail($iid); $jobtype = Jobtype::findOrFail($id); $jobtype->delete(); //dd($iid, $id); return view('jobtypes.index', compact('industry')); }
/** * Lists the job posts of a job type . * * @param int $id profile id * @param int $tid job type id * @return Response */ public function forjobtype($id, $tid) { //dd($id); $profile = Profile::findOrFail($id); $jobposts = Jobpost::byjobtype($tid)->get(); $jobtype = Jobtype::findOrFail($tid); //return response()->json(compact('jobposts')); return view('candidate_jobposts.forjobtype', compact('profile', 'jobposts', 'jobtype')); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $jobtype = Jobtype::findOrFail($id); $jobtype->delete(); return redirect()->route('admin.jobtypes.index'); }