Commit 32434066 by Azhan Hannan

Log Pia 94 & 72 : PM Validation

parent 981f35ff
......@@ -214,7 +214,7 @@
</div>
<div class="field">
<label>Remarks</label>
<textarea rows="3" name="remarks"></textarea>
<textarea type="text" rows="3" name="remarks"></textarea>
</div>
<button class="ui primary button" type="submit">Submit</button>
</form>
......
......@@ -214,7 +214,7 @@
</div>
<div class="field">
<label>Remarks</label>
<textarea rows="3" name="remarks"></textarea>
<textarea type="text" rows="3" name="remarks"></textarea>
</div>
<button class="ui primary button" type="submit">Submit</button>
......
......@@ -536,8 +536,8 @@ class DashboardController extends Controller
$chargeablelist[] = [
'pid' => $value->td_project,
'pcode' => $value->project->p_project_code,
'pname' => $value->project->p_project_description,
'pcode' => data_get($value,'project.p_project_code'),
'pname' => data_get($value,'project.p_project_description'),
];
......@@ -787,9 +787,9 @@ 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 😊');
}
// 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.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 😊');
}
......@@ -836,11 +836,11 @@ class DashboardController extends Controller
]);
}
if(data_get($request,'page') == 1){
// if(data_get($request,'page') == 1){
return redirect()->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 {
......@@ -870,11 +870,11 @@ class DashboardController extends Controller
]);
}
if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been verified.');
}
// if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff project has been rejected with remarks');
// }
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');
}
}
......@@ -899,10 +899,8 @@ class DashboardController extends Controller
$pm = Users::find(Auth::id());
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 😊');
return redirect()->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 😊');
}
return redirect()->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 😊');
}
$hod = Users::find(Auth::id());
......@@ -946,11 +944,11 @@ class DashboardController extends Controller
'tm_verified_at' => $today
]);
}
if(data_get($request,'page') == 1){
// if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been verified.');
}
// }
return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withSuccess('Staff overhead has been verified.');
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withSuccess('Staff overhead has been verified.');
} else {
......@@ -979,10 +977,10 @@ class DashboardController extends Controller
'hod_rejected_at' => $today,
]);
}
if(data_get($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');
// }
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withErrors('Staff overhead 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