Commit dc476986 by Azhan Hannan

changes

parent b96e2a42
......@@ -505,7 +505,7 @@ class DashboardController extends Controller
$pm = Users::find(Auth::id());
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index');
}
......@@ -554,7 +554,7 @@ class DashboardController extends Controller
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
......@@ -588,7 +588,7 @@ class DashboardController extends Controller
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
......@@ -616,7 +616,7 @@ class DashboardController extends Controller
$pm = Users::find(Auth::id());
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->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
'tm_verified_at' => $today
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
}
......@@ -697,7 +697,7 @@ class DashboardController extends Controller
'hod_rejected_at' => $today,
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->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');
......@@ -706,7 +706,7 @@ class DashboardController extends Controller
public function approvalaction(Request $request)
{
$page = $request->page;
$page = data_get($request,'page');
// dd($page);
$bod = Users::find(Auth::id());
......@@ -736,7 +736,7 @@ class DashboardController extends Controller
$bod = Users::find(Auth::id());
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->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
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been approved.');
}
......@@ -832,7 +832,7 @@ class DashboardController extends Controller
]);
}
if($request->page == 1){
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withErrors('Staff project has been rejected with remarks');
}
......
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