Commit 32434066 by Azhan Hannan

Log Pia 94 & 72 : PM Validation

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