@@ -787,9 +787,9 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withWarning('You wanted to rejected the project submission. Kindly give remarks for team references. Thank you 😊');
}
// if(data_get($request,'page') == 1){
// return redirect()->route('timesheet::dashboard.index')->withWarning('You wanted to rejected the project submission. Kindly give remarks for team references. Thank you 😊');
// }
returnredirect()->route('timesheet::dashboard.projectaction',compact('profile','pm','tpid','year','month','phase'))->with('warning','You wanted to rejected the project submission. Kindly give remarks for team references. Thank you 😊');
}
...
...
@@ -836,11 +836,11 @@ class DashboardController extends Controller
]);
}
if(data_get($request,'page')==1){
// if(data_get($request,'page') == 1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
// }
returnredirect()->route('timesheet::dashboard.projectVerify',compact('month','phase'))->withSuccess('Staff project has been verified.');
// return redirect()->route('timesheet::dashboard.projectVerify', compact('month', 'phase'))->withSuccess('Staff project has been verified.');
}else{
...
...
@@ -870,11 +870,11 @@ class DashboardController extends Controller
]);
}
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
// if(data_get($request,'page') == 1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been rejected with remarks');
// }
returnredirect()->route('timesheet::dashboard.projectVerify',compact('month','phase'))->withErrors('Staff project has been rejected with remarks');
// return redirect()->route('timesheet::dashboard.projectVerify', compact('month', 'phase'))->withErrors('Staff project has been rejected with remarks');
}
}
...
...
@@ -899,10 +899,8 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->with('warning','You wanted to rejected the overhead submission. Kindly give remarks for staff references. Thank you 😊');
returnredirect()->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 😊');
}
returnredirect()->route('timesheet::dashboard.projectaction',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());
...
...
@@ -946,11 +944,11 @@ class DashboardController extends Controller
'tm_verified_at'=>$today
]);
}
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
}
// if(data_get($request,'page') == 1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
// }
returnredirect()->route('timesheet::dashboard.timesheetReview',compact('month','phase'))->withSuccess('Staff overhead has been verified.');
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withSuccess('Staff overhead has been verified.');
}else{
...
...
@@ -979,10 +977,10 @@ class DashboardController extends Controller
'hod_rejected_at'=>$today,
]);
}
if(data_get($request,'page')==1){
// if(data_get($request,'page') == 1){
returnredirect()->route('timesheet::dashboard.index')->withErrors('Staff overhead has been rejected with remarks');
}
returnredirect()->route('timesheet::dashboard.timesheetReview',compact('month','phase'))->withErrors('Staff overhead has been rejected with remarks');
// }
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withErrors('Staff overhead has been rejected with remarks');