Commit 5e2ce6b4 by Azhan Hannan

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

parent d456d697
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
<?php $page = 1; ?> <?php $page = 1; ?>
@foreach($profile as $key => $staff) @foreach($profile as $key => $staff)
@if(data_get($staff,'status') == 2) @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"> <div class="title">
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
...@@ -50,11 +57,6 @@ ...@@ -50,11 +57,6 @@
</table> </table>
</div> </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;"> <div class="content" style="padding-top: 0px;">
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
...@@ -177,7 +179,19 @@ ...@@ -177,7 +179,19 @@
@endif @endif
</div> </div>
@endif @endif
@endif
@endforeach @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>
</div> </div>
@endsection @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