Commit d308a692 by Azhan Hannan

display all status timesheet in staff dashboard

parent 3f69a54d
......@@ -300,7 +300,7 @@ class DashboardController extends Controller
$staffs = Staff_info::where('status', 1)->get();
// dd($staffs);
$timesheet = Ts_master::where('tm_staff_id', $staffid)
->whereIn('tm_timesheet_master_sts', [2,3,5,6])
->whereIn('tm_timesheet_master_sts', [2,3,4,5,6])
->orderby('tm_year')
->orderby('tm_month', 'DESC')
->orderby('tm_phase', 'DESC')
......@@ -308,7 +308,7 @@ class DashboardController extends Controller
$projects = Tproject::where('staffid', $staffid)
// ->where('tp_year', date('Y'))
->whereIn('tp_timesheet_sts', [2,3,5,6])
->whereIn('tp_timesheet_sts', [2,3,4,5,6])
->with('project')
->with('overhead')
->with('hod')
......@@ -317,7 +317,7 @@ class DashboardController extends Controller
// dd($projects);
$staffnotes = Tproject::where('tp_project_type', 3)
->whereIn('tp_timesheet_sts', [2,3,5,6])
->whereIn('tp_timesheet_sts', [2,3,4,5,6])
->where('staffid', $staffid)
// ->where('tp_year', date('Y'))
->with('notes')
......
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