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 😊');
}
// dd($request);
...
...
@@ -542,6 +554,10 @@ class DashboardController extends Controller
]);
}
if($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.');
}else{
...
...
@@ -572,6 +588,10 @@ class DashboardController extends Controller
]);
}
if($request->page==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
returnredirect()->route('timesheet::dashboard.projectVerify',compact('month','phase'))->withErrors('Staff project has been rejected with remarks');
}
}
...
...
@@ -596,6 +616,10 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
if($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.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 😊');
}
...
...
@@ -640,6 +664,9 @@ class DashboardController extends Controller
'tm_verified_at'=>$today
]);
}
if($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.');
...
...
@@ -670,14 +697,18 @@ class DashboardController extends Controller
'hod_rejected_at'=>$today,
]);
}
if($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');
}
}
publicfunctionapprovalaction(Request$request)
{
// dd($request);
$page=$request->page;
// dd($page);
$bod=Users::find(Auth::id());
$profile=Tproject::where('id',$request->tpid)
...
...
@@ -685,7 +716,7 @@ class DashboardController extends Controller
@@ -705,6 +736,10 @@ class DashboardController extends Controller
$bod=Users::find(Auth::id());
if($request->page==1){
returnredirect()->route('timesheet::dashboard.index')->with('warning','You wanted to reject the submission. Kindly give remarks for staff references. Thank you 😊');
}
returnredirect()->route('timesheet::dashboard.approvalaction',compact('profile','bod','tpid','year','month','phase'))->with('warning','You wanted to reject the submission. Kindly give remarks for staff references. Thank you 😊');
}
// dd($request);
...
...
@@ -757,6 +792,10 @@ class DashboardController extends Controller
]);
}
if($request->page==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been approved.');
}
returnredirect()->route('timesheet::dashboard.timesheetApproval',compact('month','phase'))->withSuccess('Staff project has been approved.');
}else{
...
...
@@ -794,6 +833,10 @@ class DashboardController extends Controller
]);
}
if($request->page==1){
returnredirect()->route('timesheet::dashboard.index')->withErrors('Staff project has been rejected with remarks');
}
returnredirect()->route('timesheet::dashboard.timesheetApproval',compact('month','phase'))->withErrors('Staff project has been rejected with remarks');