Commit 8f726ed6 by Azhan Hannan

Log Pia #163 -> ISU: EN fairuz tak dapat tindakan unuk resubmit

parent 52e25770
......@@ -160,9 +160,6 @@ class DashboardController extends Controller
if ( $roleid == '8') {
$staffinfo = Staff_info::where('id',Auth::id())
->with('pelulus')
->first();
$verifier = Users::find(Auth::id());
......@@ -186,6 +183,10 @@ class DashboardController extends Controller
->get();
//timesheet status
$staffinfo = Staff_info::where('id',Auth::id())
->with('pelulus')
->first();
$staffid = Users::find(Auth::id())
->u_staffID;
......@@ -235,7 +236,31 @@ class DashboardController extends Controller
->get();
// dd($overheads);
return view('timesheet::dashboard.dashboardpmhod', compact('profile', 'details', 'verifier', 'overheads'));
//timesheet status
$staffinfo = Staff_info::where('id',Auth::id())
->with('pelulus')
->first();
$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.dashboardpmhod', compact('profile', 'details', 'verifier', 'overheads', 'staffinfo', 'timesheet', 'projects'));
}
if (($roleid == ('5'||'6'))) {
......
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