Commit 5e2ce6b4 by Azhan Hannan

Dashboard Hod → kalau takde tproject yg pending, tak perlu display

parent d456d697
......@@ -11,6 +11,13 @@
<?php $page = 1; ?>
@foreach($profile as $key => $staff)
@if(data_get($staff,'status') == 2)
<?php
$detail = $details->where('staffid', $staff->staff_id)->where('fk_tm_id', $staff->tmid)->where('tp_project_sts', 2);
$ts = $checkts->where('tm_staff_id', $staff->staff_id);
// dump($detail);
?>
@if(count($detail) > 0)
<div class="title">
<table class="ui unstackable celled table">
<thead>
......@@ -50,11 +57,6 @@
</table>
</div>
<?php
$detail = $details->where('staffid', $staff->staff_id);
$ts = $checkts->where('tm_staff_id', $staff->staff_id);
?>
<div class="content" style="padding-top: 0px;">
<table class="ui unstackable celled table">
<thead>
......@@ -177,7 +179,19 @@
@endif
</div>
@endif
@endif
@endforeach
@if(count($detail) == 0)
<table class="ui unstackable celled table">
<thead>
<tr>
<th class="text-center">No pending verification</th>
</tr>
</thead>
</table>
@endif
</div>
</div>
@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