Commit 059d1d05 by Azhan Hannan

Log Pia #181 -> HOD boleh reject overhead without remarks

parent 00ca5836
......@@ -1028,10 +1028,10 @@ class DashboardController extends Controller
public function verifyoverhead(Request $request)
{
if($request->action == 2 && $request->remarks == null)
{
// dd('reject & tak komen');
// dd($request);
$profile = Tproject::where('id', $request->tpid)
->with('team')
......@@ -1046,9 +1046,10 @@ class DashboardController extends Controller
$pm = Users::find(Auth::id());
if(data_get($request,'page') == 1){
// if(data_get($request,'page') == 1)
// {
return redirect()->route('timesheet::dashboard.revaction', compact('profile', 'pm', 'tpid', 'year', 'month', 'phase'))->with('warning', 'You wanted to rejected the overhead submission. Kindly give remarks for staff references. Thank you.');
}
// }
}
$hod = Users::find(Auth::id());
......@@ -1062,7 +1063,6 @@ class DashboardController extends Controller
$phase = $profile->tp_phase;
$tmid = $profile->fk_tm_id;
$pid = $profile->fk_o_id;
// dd($request);
if ($request->action == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment