@@ -789,10 +789,10 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
// 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 😊');
// 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 😊');
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);
...
...
@@ -900,7 +900,7 @@ class DashboardController extends Controller
$pm=Users::find(Auth::id());
if(data_get($request,'page')==1){
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.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.');
}
}
...
...
@@ -1147,11 +1147,11 @@ class DashboardController extends Controller
$bod=Users::find(Auth::id());
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 😊');
}
// 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.');
// }
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 😊');
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);
...
...
@@ -1203,11 +1203,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 approved.');
}
// }
returnredirect()->route('timesheet::dashboard.timesheetApproval',compact('month','phase'))->withSuccess('Staff project has been approved.');
// return redirect()->route('timesheet::dashboard.timesheetApproval', compact('month', 'phase'))->withSuccess('Staff project has been approved.');
}else{
...
...
@@ -1243,11 +1243,11 @@ class DashboardController extends Controller
]);
}
if(data_get($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.timesheetApproval',compact('month','phase'))->withErrors('Staff project has been rejected with remarks');
// return redirect()->route('timesheet::dashboard.timesheetApproval', compact('month', 'phase'))->withErrors('Staff project has been rejected with remarks');
}
}
...
...
@@ -1405,7 +1405,7 @@ class DashboardController extends Controller
foreach($checknotesas$key=>$value){
if($value->td_overhead_note==null)
{
returnredirect()->route('timesheet::form.notelist',['year'=>$request->year,'month'=>$request->month,'phase'=>$request->phase,'fk_tm_id'=>$request->tid])->withSuccess('Kindly fill in and save your notes before submit your timesheet. Thank you 😊');
returnredirect()->route('timesheet::form.notelist',['year'=>$request->year,'month'=>$request->month,'phase'=>$request->phase,'fk_tm_id'=>$request->tid])->withSuccess('Kindly fill in and save your notes before submit your timesheet. Thank you.');
}
}
...
...
@@ -1626,7 +1626,7 @@ class DashboardController extends Controller
publicfunctionselectapproval(Request$request)
{
// dd($request->pid);
// dd($request);
if($request->pid)
{
}
...
...
@@ -1791,42 +1791,334 @@ class DashboardController extends Controller
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 😊');
returnredirect()->route('timesheet::dashboard.selectapprovalpage',compact('tmid','page','pid'))->with('warning','You wanted to reject the submission. Kindly give remarks for staff references. Thank you.');
}
// dd('wait a minute');
if($request->action==1){
$projects=Tproject::whereIn('id',$pid)
->update([
...
...
@@ -1834,7 +2126,6 @@ class DashboardController extends Controller
returnredirect()->route('timesheet::dashboard.index')->withErrors('Please enter remarks for the timesheet rejection');
$tmid=data_get($request,'tmid');
$page=data_get($request,'page');
returnredirect()->route('timesheet::dashboard.approveallaction',compact('tmid','page'))->with('warning','Please enter remarks for the timesheet rejection');