public function edit($salarySheetId, $salarySheetRecordId) { $salary_sheet = SalarySheet::find($salarySheetId); $employees = Employee::lists('name', 'id')->sort(); $salary_sheet_record = SalarySheetRecord::find($salarySheetRecordId); return view('hr.salary_sheet.edit', compact('salary_sheet', 'employees', 'salary_sheet_record')); }
/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $salary_sheet = SalarySheet::find($id); $employees = Employee::lists('name', 'id')->sort(); return view('hr.salary_sheet.show', compact('salary_sheet', 'employees')); }