@@ -941,13 +942,16 @@ class DashboardController extends Controller
...
@@ -941,13 +942,16 @@ class DashboardController extends Controller
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.');
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);
$pm=Users::find(Auth::id());
$pm=Users::find(Auth::id());
$today=Carbon::today()->toDateString();
$today=Carbon::today()->toDateString();
$profile=Tproject::where('id',$request->tpid)
$profile=Tproject::where('id',$request->tpid)
->with('team')
->with('pm')
->with('bod')
->with('project')
->first();
->first();
// dd($profile);
// dd($profile);
...
@@ -987,9 +991,7 @@ class DashboardController extends Controller
...
@@ -987,9 +991,7 @@ 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.index')->withSuccess('Staff project has been verified.');
// }
// }
// return redirect()->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{
}else{
$profile->tp_timesheet_sts=6;
$profile->tp_timesheet_sts=6;
...
@@ -998,6 +1000,52 @@ class DashboardController extends Controller
...
@@ -998,6 +1000,52 @@ class DashboardController extends Controller
@@ -1019,9 +1067,8 @@ class DashboardController extends Controller
...
@@ -1019,9 +1067,8 @@ 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 rejected');
returnredirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been rejected');
// }
// }
// return redirect()->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');