Commit 908583fb by hannan

filter notes data in timesheet review and approval, permission to verify and approve

parent c8ce83fb
......@@ -29,7 +29,7 @@
@endif
</th>
<th class="right aligned">
@if($staff->status < 3)
@if($staff->status == 2)
<button class="center aligned ui green icon button" onclick="window.location.href='{{ route('timesheet::dashboard.revaction', [ 'tmid'=>$staff->tmid ]) }}';">Verify | Reject</button>
@else
<!-- <button class="center aligned ui green icon button disabled">Approve | Reject</button> -->
......
......@@ -176,6 +176,8 @@ class DashboardController extends Controller
$profile = VwReviewProfile::where('bod_id', $approval->id)
->where('tm_year', $curryear)
->where('tm_month', $month)
->where('tm_phase', $phase)
->get();
$staffs = Staff_info::where('pelulus', $approval->id)
......@@ -187,6 +189,7 @@ class DashboardController extends Controller
->where('tm_phase', $request->phase)
->with('attachement')
->get();
// dd($checkts);
$details = VwReviewDetails::where('year', $curryear)
->where('month', $request->month)
......@@ -198,8 +201,9 @@ class DashboardController extends Controller
->where('tm_month', $request->month)
->where('tm_phase', $request->phase)
->where('td_hours', "<>", 0)
->orwhereNotNull('td_overhead_note')
// ->orwhereNotNull('td_overhead_note')
->get();
// dd($checktd);
return view('timesheet::dashboard.timesheetApproval', compact('profile', 'staffs', 'details', 'checkts', 'checktd', 'year', 'month', 'phase'));
}
......@@ -237,6 +241,8 @@ class DashboardController extends Controller
$profile = VwReviewProfile::where('hod_id', $verifier->id)
->where('tm_year', $curryear)
->where('tm_month', $month)
->where('tm_phase', $phase)
->get();
$staffs = Staff_info::where('penyokong', $verifier->id)
......@@ -259,7 +265,7 @@ class DashboardController extends Controller
->where('tm_month', $request->month)
->where('tm_phase', $request->phase)
->where('td_hours', "<>", 0)
->orwhereNotNull('td_overhead_note')
// ->orwhereNotNull('td_overhead_note')
->get();
return view('timesheet::dashboard.timesheetReview', compact('profile', 'staffs', 'details', 'checkts', 'checktd', 'year', 'month', 'phase'));
......
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