コード例 #1
0
 /**
  * @param JobCard $job_card
  * @param PrintingLogSheet $printing_log_sheet
  * @return $this
  */
 public function edit(JobCard $job_card, PrintingLogSheet $printing_log_sheet)
 {
     $this->authorize('edit_printing_log_sheet');
     if (!$job_card->is_passed_for_printing) {
         return redirect()->action('PrintingPassSheetsController@create', [$job_card]);
     }
     return view('printing.log_sheets.edit')->with(['job' => $job_card, 'printing_team' => \App\User::printingTeam()->get(), 'printing_log_sheet' => $printing_log_sheet, 'material_grades' => MaterialGrade::all()->pluck('mat_grade', 'material_grade_id')]);
 }
コード例 #2
0
 /**
  * @param JobCard $job_card
  * @return $this
  */
 public function edit(JobCard $job_card)
 {
     $this->authorize('pass_printing_job');
     if ($job_card->printingPassSheet->managerThatPassed instanceof User) {
         return redirect()->action('PrintingLogSheetsController@edit', [$job_card, $job_card->printingLogSheets->last()]);
     }
     return view('printing.pass_sheets.edit')->with(['job' => $job_card, 'pass_sheet' => $job_card->printingPassSheet, 'material_grades' => MaterialGrade::all()->pluck('mat_grade', 'material_grade_id')]);
 }
コード例 #3
0
 /**
  * Show edit for for the specified group
  *
  * @param Material $material
  * @return $this
  */
 public function edit(Material $material)
 {
     $this->authorize('view_material');
     return view('raw_material.material.edit')->with(['material' => $material, 'suppliers' => Supplier::all()->sortBy('supplier_company_name'), 'grades' => MaterialGrade::all()->sortBy('mat_grade'), 'logistics' => Logistics::all()->sortBy('logistic_destination')]);
 }