Commit 52e25770 by Azhan Hannan

Log Pia #164 -> ISU: Wirda tak dapat tindakan unuk resubmit

parent d04f1c6d
......@@ -61,7 +61,7 @@ class DashboardController extends Controller
$verifier = Users::find(Auth::id());
$profile = VwReviewProfile::where('hod_id', $verifier->id)
->whereIn('status', [2,3,6])
->where('status', 2)
->with('overheads')
->orderby('tm_year', 'desc')
->orderby('tm_month', 'desc')
......@@ -160,6 +160,10 @@ class DashboardController extends Controller
if ( $roleid == '8') {
$staffinfo = Staff_info::where('id',Auth::id())
->with('pelulus')
->first();
$verifier = Users::find(Auth::id());
$profile = VwChargeableVerification::select('tmid', 'staff_id', 'year', 'month', 'phase', 'status', 'submission', 'fullname', 'roleid', 'pmstaffid')
......@@ -181,7 +185,27 @@ class DashboardController extends Controller
->with('pm')
->get();
return view('timesheet::dashboard.dashboardpm', compact('profile', 'details', 'verifier'));
//timesheet status
$staffid = Users::find(Auth::id())
->u_staffID;
$timesheet = Ts_master::where('tm_staff_id', $staffid)
->where('tm_timesheet_master_sts', '<>', 1)
->orderby('tm_year')
->orderby('tm_month', 'DESC')
->orderby('tm_phase', 'DESC')
->get();
$projects = Tproject::where('staffid', $staffid)
->where('tp_year', date('Y'))
->where('tp_timesheet_sts', '<>', 1)
->with('project')
->with('overhead')
->with('hod')
->with('bod')
->get();
return view('timesheet::dashboard.dashboardpm', compact('profile', 'details', 'verifier', 'timesheet', 'projects', 'staffinfo'));
}
if ( $roleid == '9') {
......
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