Commit 9ade3445 by Azhan Hannan

changes

parent 7b789b9d
......@@ -4,6 +4,12 @@
<div class="ui segment">
<a class="ui blue left ribbon label">Rejected Project</a>
<?php
// dd($profile);
?>
<a class="ui right floated center compact aligned right orange button" href="{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($profile,'staffid') ,'phase' => data_get($profile,'tp_phase'), 'month' => data_get($profile,'tp_month'), 'year' => data_get($profile,'tp_year')]) }}" target="_blank">View Timesheet</a>
<div class="ui right floated center compact aligned basic right button">
<div class="header item" style="color: #000000;">
<strong>
......@@ -12,6 +18,7 @@
</div>
</div>
<br>
<br>
......
......@@ -1375,6 +1375,8 @@ class DashboardController extends Controller
public function timesheetViewer(Request $request)
{
// dd($request->month);
$curruser = $user = Staff_info::where('fk_users', Auth::id())
->first();
......
......@@ -2392,6 +2392,7 @@ class FormController extends Controller
Ts_master::where('id', $tmasterid)
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
}
return redirect()->route('timesheet::dashboard.index')->withSuccess('Timesheet project has been resubmit. Waiting for Project Director approval.');
......@@ -2792,20 +2793,25 @@ class FormController extends Controller
->update([
'tp_timesheet_sts' => 3,
'verifier_remark' => 'Verified',
'tp_verified_at' => today()->toDateString()
] );
}
else
{
Ts_master::where('id', $request->fk_tm_id)
->update([ 'tm_timesheet_master_sts' => 3 ]);
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
Ts_detail::where('fk_tm_id', $request->fk_tm_id)
->update([ 'td_timesheet_sts' => 3 ]);
Tproject::where('fk_tm_id', $request->fk_tm_id)
->update([
'tp_timesheet_sts' => 3,
'verifier_remark' => 'Verified',
'verifier_remark' => 'Auto-verified',
'tp_verified_at' => today()->toDateString()
] );
}
......
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