Commit fa1e374b by Azhan Hannan

Log Pia #141 -> → tambah section untuk TINDAKAN - utk case Kak Syamilah

parent d0053dd4
......@@ -220,6 +220,27 @@ class DashboardController extends Controller
->get();
// dd($projects);
//verifier section
$verifier = Users::find(Auth::id());
$profile = VwReviewProfile::where('hod_id', $verifier->id)
->whereIn('status', [2,3,6])
->with('overheads')
->orderby('tm_year', 'desc')
->orderby('tm_month', 'desc')
->orderby('tm_phase', 'desc')
->get();
// dd($profile);
$details = Tproject::where('tp_project_type', 3)
->where('tp_timesheet_sts','<>', 1)
->where('tp_pm', $verifier->id)
->with('notes')
->get();
$checkts = Ts_master::whereIn('tm_timesheet_master_sts', [2,3,6])
->with('attachement')
->get();
$user = Users::where('name', 'like', '%'.$keyword.'%')
->orWhere(
function ($query) use ($keyword) {
......@@ -227,7 +248,7 @@ class DashboardController extends Controller
}
)->paginate(15);
return view('timesheet::dashboard.dashboardstaff',compact('user', 'timesheet', 'staffs', 'projects', 'roleid', 'staffinfo'));
return view('timesheet::dashboard.dashboardstaff',compact('user', 'timesheet', 'staffs', 'projects', 'roleid', 'staffinfo', 'profile', 'details', 'checkts'));
}if ($roleid == '3') {
......@@ -1005,7 +1026,7 @@ class DashboardController extends Controller
]);
}
// if(data_get($request,'page') == 1){
return redirect()->route('timesheet::dashboard.index')->withErrors('Staff overhead has been rejected');
return redirect()->route('timesheet::dashboard.index')->withSuccess('Staff overhead has been rejected');
// }
// return redirect()->route('timesheet::dashboard.timesheetReview', compact('month', 'phase'))->withErrors('Staff overhead has been rejected');
}
......
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