Commit d04f1c6d by Azhan Hannan

changes

parent 19511ea7
...@@ -192,6 +192,7 @@ ...@@ -192,6 +192,7 @@
<br> <br>
<div class="ui styled fluid accordion"> <div class="ui styled fluid accordion">
<?php $page = 1; ?> <?php $page = 1; ?>
@if(count($profile) > 0)
@foreach($profile as $key => $staff) @foreach($profile as $key => $staff)
@if(data_get($staff,'status') == 2 || data_get($staff,'status') == 3 || data_get($staff,'status') == 6 ) @if(data_get($staff,'status') == 2 || data_get($staff,'status') == 3 || data_get($staff,'status') == 6 )
<?php <?php
...@@ -363,8 +364,7 @@ ...@@ -363,8 +364,7 @@
@endif @endif
@endforeach @endforeach
@else
@if(count($details) == 0)
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
<tr> <tr>
......
...@@ -155,7 +155,7 @@ class DashboardController extends Controller ...@@ -155,7 +155,7 @@ class DashboardController extends Controller
->with('attachement') ->with('attachement')
->get(); ->get();
return view('timesheet::dashboard.dashboardbod', compact('approval', 'profiles', 'detailsverification', 'checktd', 'profile', 'details', 'checkts')); return view('timesheet::dashboard.dashboardbod', compact('approval', 'profiles', 'detailsverification', 'checktd', 'profile', 'checkts', 'details'));
} }
if ( $roleid == '8') { if ( $roleid == '8') {
......
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