/**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $report_dates = ReportDate::lists('petsa', 'id');
     $saving_graduate = SavingGraduate::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($saving_graduate->subsector->id)->lists('name', 'id');
     return view('tviadmin.saving_graduates.edit', compact('saving_graduate', 'sectors', 'subsectors', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $report_dates = ReportDate::lists('petsa', 'id');
     $job_placement_graduate = JobPlacementGraduate::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($job_placement_graduate->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($job_placement_graduate->occupation->id)->lists('name', 'id');
     return view('tviadmin.job_placement_graduates.edit', compact('job_placement_graduate', 'sectors', 'subsectors', 'occupations', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $report_dates = ReportDate::lists('petsa', 'id');
     $dropout_shortterm = DropoutShortTermTrainee::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($dropout_shortterm->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($dropout_shortterm->occupation->id)->lists('name', 'id');
     return view('tviadmin.dropout_short_term.edit', compact('dropout_shortterm', 'sectors', 'subsectors', 'occupations', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $report_dates = ReportDate::lists('petsa', 'id');
     $industry_extension1 = IndustryExtension1::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($industry_extension1->subsector->id)->lists('name', 'id');
     return view('tviadmin.industry_extension1s.edit', array('industry_extension1' => $industry_extension1, 'report_dates' => $report_dates, 'sectors' => $sectors, 'subsectors' => $subsectors));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $report_dates = ReportDate::lists('petsa', 'id');
     $cooperative_training_transferee = CooperativeTrainingTransferee::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($cooperative_training_transferee->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($cooperative_training_transferee->occupation->id)->lists('name', 'id');
     return view('tviadmin.cooperative_training_transferees.edit', compact('cooperative_training_transferee', 'sectors', 'subsectors', 'occupations', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $report_dates = ReportDate::lists('petsa', 'id');
     $assessment_transferee = AssessmentTransferee::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($assessment_transferee->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($assessment_transferee->occupation->id)->lists('name', 'id');
     return view('tviadmin.assessment_transferees.edit', compact('assessment_transferee', 'sectors', 'subsectors', 'occupations', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $report_dates = ReportDate::lists('petsa', 'id');
     $graduate = Graduate::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($graduate->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($graduate->occupation->id)->lists('name', 'id');
     return view('tviadmin.graduates.edit', compact('graduate', 'sectors', 'subsectors', 'occupations', 'report_dates'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $report_dates = ReportDate::lists('petsa', 'id');
     $assessment = Assessment::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($assessment->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($assessment->occupation->id)->lists('name', 'id');
     return view('tviadmin.assessments.edit', array('assessment' => $assessment, 'report_dates' => $report_dates, 'sectors' => $sectors, 'subsectors' => $subsectors, 'occupations' => $occupations));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $report_dates = ReportDate::lists('petsa', 'id');
     $formal_training = FormalTraining::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($formal_training->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($formal_training->occupation->id)->lists('name', 'id');
     return view('tviadmin.formal_trainings.edit', array('formal_training' => $formal_training, 'report_dates' => $report_dates, 'sectors' => $sectors, 'subsectors' => $subsectors, 'occupations' => $occupations));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $user = Auth::user();
     $report_dates = ReportDate::lists('petsa', 'id');
     $short_term_training = ShortTermTraining::findOrFail($id);
     $sectors = Sector::all()->lists('name', 'id');
     $subsectors = Subsector::findOrFail($short_term_training->occupation->subsector->id)->lists('name', 'id');
     $occupations = Occupation::findOrFail($short_term_training->occupation->id)->lists('name', 'id');
     $competencies = Occupation::findOrFail($short_term_training->occupation->id)->competencies()->lists('name', 'id');
     return view('tviadmin.short_term_trainings.edit', array('short_term_training' => $short_term_training, 'report_dates' => $report_dates, 'sectors' => $sectors, 'subsectors' => $subsectors, 'occupations' => $occupations, 'competencies' => $competencies));
 }
 public function delete($id)
 {
     $subsector = Subsector::findOrFail($id);
     return view('sysadmin.subsectors.delete', compact('subsector'));
 }