Commit 17a5877a by Azhan Hannan

Dashboard HOD PM bezakan section PM dan Project

Bahagian timesheet kepada 2 section.
Section PMS
Selain PMS
parent 90a64481
...@@ -144,12 +144,13 @@ class DashboardController extends Controller ...@@ -144,12 +144,13 @@ class DashboardController extends Controller
$verifier = Users::find(Auth::id()); $verifier = Users::find(Auth::id());
$profile = VwChargeableVerification::select('tmid', 'staff_id', 'year', 'month', 'phase', 'status', 'submission', 'fullname', 'roleid', 'pmstaffid') $profile = VwChargeableVerification::select('tmid', 'staff_id', 'year', 'month', 'phase', 'status', 'submission', 'fullname', 'roleid', 'pmstaffid', 'dept')
->where('pmstaffid', $verifier->u_staffID) ->where('pmstaffid', $verifier->u_staffID)
->where('status', 2) ->where('status', 2)
->distinct('staff_id') ->distinct('staff_id')
->orderby('roleid') ->orderby('roleid')
->with('countchargeable') ->with('countchargeable')
// ->with('department')
->get(); ->get();
// dd($profile); // dd($profile);
......
...@@ -28,6 +28,11 @@ class VwChargeableVerification extends Model ...@@ -28,6 +28,11 @@ class VwChargeableVerification extends Model
return $this->hasMany('Portal\Timesheet\Model\Tproject','fk_tm_id','tmid')->where('tp_project_type', 1); return $this->hasMany('Portal\Timesheet\Model\Tproject','fk_tm_id','tmid')->where('tp_project_type', 1);
} }
// public function department()
// {
// return $this->hasOne('Portal\Timesheet\Model\Staff_info','staff_id','staff_id');
// }
public function info() public function info()
{ {
......
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