@@ -554,7 +554,7 @@ class DashboardController extends Controller
...
@@ -554,7 +554,7 @@ class DashboardController extends Controller
]);
]);
}
}
if($request->page==1){
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
}
...
@@ -588,7 +588,7 @@ class DashboardController extends Controller
...
@@ -588,7 +588,7 @@ class DashboardController extends Controller
]);
]);
}
}
if($request->page==1){
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
}
...
@@ -616,7 +616,7 @@ class DashboardController extends Controller
...
@@ -616,7 +616,7 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
$pm=Users::find(Auth::id());
if($request->page==1){
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.index')->with('warning','You wanted to rejected the overhead submission. Kindly give remarks for staff references. Thank you 😊');
}
}
...
@@ -664,7 +664,7 @@ class DashboardController extends Controller
...
@@ -664,7 +664,7 @@ class DashboardController extends Controller
'tm_verified_at'=>$today
'tm_verified_at'=>$today
]);
]);
}
}
if($request->page==1){
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
}
}
...
@@ -697,7 +697,7 @@ class DashboardController extends Controller
...
@@ -697,7 +697,7 @@ class DashboardController extends Controller
'hod_rejected_at'=>$today,
'hod_rejected_at'=>$today,
]);
]);
}
}
if($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.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');
returnredirect()->route('timesheet::dashboard.timesheetReview',compact('month','phase'))->withErrors('Staff overhead has been rejected with remarks');
...
@@ -706,7 +706,7 @@ class DashboardController extends Controller
...
@@ -706,7 +706,7 @@ class DashboardController extends Controller
publicfunctionapprovalaction(Request$request)
publicfunctionapprovalaction(Request$request)
{
{
$page=$request->page;
$page=data_get($request,'page');
// dd($page);
// dd($page);
$bod=Users::find(Auth::id());
$bod=Users::find(Auth::id());
...
@@ -736,7 +736,7 @@ class DashboardController extends Controller
...
@@ -736,7 +736,7 @@ class DashboardController extends Controller
$bod=Users::find(Auth::id());
$bod=Users::find(Auth::id());
if($request->page==1){
if(data_get($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.index')->with('warning','You wanted to reject the submission. Kindly give remarks for staff references. Thank you 😊');
}
}
...
@@ -792,7 +792,7 @@ class DashboardController extends Controller
...
@@ -792,7 +792,7 @@ class DashboardController extends Controller
]);
]);
}
}
if($request->page==1){
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been approved.');
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been approved.');
}
}
...
@@ -832,7 +832,7 @@ class DashboardController extends Controller
...
@@ -832,7 +832,7 @@ class DashboardController extends Controller
]);
]);
}
}
if($request->page==1){
if(data_get($request,'page')==1){
returnredirect()->route('timesheet::dashboard.index')->withErrors('Staff project has been rejected with remarks');
returnredirect()->route('timesheet::dashboard.index')->withErrors('Staff project has been rejected with remarks');