Commit 5c70324d by Azhan Hannan

dashboard pmhod, remove filter project

parent f0ffd832
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
<?php <?php
$project = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID)); $project = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID));
$checksts = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID)->where('tp_timesheet_sts', 3)); $checksts = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID)->where('tp_timesheet_sts', 3));
?> ?>
@if($project == $checksts) @if($project == $checksts)
......
...@@ -66,7 +66,7 @@ class DashboardController extends Controller ...@@ -66,7 +66,7 @@ class DashboardController extends Controller
->get(); ->get();
$details = Tproject::where('tp_project_type', 3) $details = Tproject::where('tp_project_type', 3)
->where('tp_timesheet_sts', 2) // ->where('tp_timesheet_sts', 2)
->where('tp_pm', $verifier->id) ->where('tp_pm', $verifier->id)
->with('notes') ->with('notes')
->get(); ->get();
...@@ -144,14 +144,14 @@ class DashboardController extends Controller ...@@ -144,14 +144,14 @@ class DashboardController extends Controller
->get(); ->get();
// dd($profile); // dd($profile);
$details = Tproject::where('tp_timesheet_sts', 2) $details = Tproject::where('tp_pm', $verifier->u_staffID)
->where('tp_pm', $verifier->u_staffID) // ->where('tp_timesheet_sts', 2)
->with('project') ->with('project')
->with('pm') ->with('pm')
->get(); ->get();
$overheads = Tproject::where('tp_project_type', 3) $overheads = Tproject::where('tp_project_type', 3)
->where('tp_timesheet_sts', 2) // ->where('tp_timesheet_sts', 2)
->where('tp_pm', $verifier->id) ->where('tp_pm', $verifier->id)
->with('notes') ->with('notes')
->get(); ->get();
......
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