Commit 20406395 by Azhan Hannan

checking null error for dashboard pmhod

parent 17a5877a
......@@ -4,7 +4,7 @@
<?php
// $pms = $others =;
$pms = $others = null;
foreach ($profile as $key => $value) {
// dd($value);
if (data_get($value,'dept') == 4) {
......@@ -15,7 +15,6 @@
}
?>
@if($pms)
<div class="ui segment">
<div class="ui purple left ribbon label">
PMS
......@@ -29,6 +28,7 @@
$pmss = $profile->where('dept', 4);
?>
@if($pms)
@foreach($pmss as $key => $staff)
<?php
$project = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID));
......@@ -206,11 +206,18 @@
</div>
@endif
@endforeach
@else
<table class="ui unstackable celled table">
<thead>
<tr>
<th class="text-center">No pending verification</th>
</tr>
</thead>
</table>
@endif
</div>
</div>
@endif
@if($others)
<div class="ui segment">
<div class="ui blue left ribbon label">
Other Departments
......@@ -224,6 +231,7 @@
$notpms = $profile->where('dept', '<>',4);
?>
@if($others)
@foreach($notpms as $key => $staff)
<?php
$project = count(data_get($staff,'countchargeable')->where('tp_pm', $verifier->u_staffID));
......@@ -400,9 +408,17 @@
</div>
@endif
@endforeach
@else
<table class="ui unstackable celled table">
<thead>
<tr>
<th class="text-center">No pending verification</th>
</tr>
</thead>
</table>
@endif
</div>
</div>
@endif
@endsection
......
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