Commit 9f896c9f by Azhan Hannan

Dashboard PM - click view error

parent 9dfc16c1
......@@ -41,7 +41,7 @@
</th>
<th style="width: 13%" class="text-center">Submitted on: {{data_get($staff,'submission')}}</th>
<th style="width: 12%" class="text-center">
<button class="center aligned ui blue icon button" onclick="window.location.href='{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($staff,'staff_id') ,'phase' => data_get($staff,'tp_phase'), 'month' => data_get($staff,'tp_month'), 'year' => data_get($staff,'tp_year')]) }}';" target='_blank'>View</button>
<button class="center aligned ui blue icon button" onclick="window.location.href='{{ route('timesheet::dashboard.timesheetViewer', [ 'user'=>data_get($staff,'staff_id') ,'phase' => data_get($staff,'phase'), 'month' => data_get($staff,'month'), 'year' => data_get($staff,'year')]) }}';" target='_blank'>View</button>
</th>
</tr>
</thead>
......
......@@ -115,7 +115,8 @@ class DashboardController extends Controller
$profile = VwChargeableVerification::select('tmid', 'staff_id', 'year', 'month', 'phase', 'status', 'submission', 'fullname', 'roleid', 'pmstaffid')
->where('pmstaffid', $verifier->u_staffID)
->where('status', 2)
->distinct('staff_id')
->groupby('staff_id')
// ->distinct('staff_id')
->orderby('roleid')
->with('countchargeable')
->get();
......
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