Commit a2f87f27 by Azhan Hannan

changes

parent 07791583
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<?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)
...@@ -96,7 +97,7 @@ ...@@ -96,7 +97,7 @@
$overhead = $overheads->where('staffid', $staff->staff_id); $overhead = $overheads->where('staffid', $staff->staff_id);
$checkoverhead = $overheads->where('staffid', $staff->staff_id)->first(); $checkoverhead = $overheads->where('staffid', $staff->staff_id)->first();
?> ?>
@if($checkoverhead) @if($checkoverhead)
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
...@@ -164,9 +165,7 @@ ...@@ -164,9 +165,7 @@
@endif @endif
</div> </div>
@endif @endif
@endforeach @endforeach
</div> </div>
......
...@@ -375,7 +375,7 @@ class DashboardController extends Controller ...@@ -375,7 +375,7 @@ class DashboardController extends Controller
$details = Tproject::where('tp_year', $curryear) $details = Tproject::where('tp_year', $curryear)
->where('tp_month', $month) ->where('tp_month', $month)
->where('tp_phase', $phase) ->where('tp_phase', $phase)
->where('tp_timesheet_sts', 2) // ->where('tp_timesheet_sts', 2)
->where('tp_pm', $verifier->u_staffID) ->where('tp_pm', $verifier->u_staffID)
->with('project') ->with('project')
->with('pm') ->with('pm')
......
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