Commit b96e2a42 by Azhan Hannan

update dashboard approval

parent 2fd63eca
......@@ -67,8 +67,9 @@
<th style="width: 10%;" class="center aligned">Action</th>
</tr>
</thead>
@if($detail->where('tp_project_type', 1) && data_get($staff,'tmid') == data_get($chargeable,'fk_tm_id'))
@if($detail->where('tp_project_type', 1))
@foreach($detail->where('tp_project_type', 1) as $key => $chargeable)
@if(data_get($staff,'tmid') == data_get($chargeable,'fk_tm_id'))
<tr>
<td style="width: 10%;">{{ data_get($chargeable, 'project.p_project_code') }}</td>
<td style="width: 15%;">{{ data_get($chargeable, 'tp_project_name') }}</td>
......@@ -94,8 +95,8 @@
@endif
</td>
</tr>
@endif
@endforeach
@endif
</table>
@endif
......
......@@ -811,7 +811,6 @@ class DashboardController extends Controller
->where('td_project', $pid)
->update([ 'td_timesheet_sts' => 5 ]);
} else {
dd('sini');
Ts_detail::where('fk_tm_id', $tmid)
->where('fk_o_id', $oid)
->update([ 'td_timesheet_sts' => 5 ]);
......@@ -829,7 +828,7 @@ class DashboardController extends Controller
->update(
[
'tm_timesheet_master_sts' => 5,
'hod_rejected_at' => $today,
'bod_rejected_at' => $today,
]);
}
......
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