Commit 2f385a30 by Azhan Hannan

remove thead empty overhead, divide segment approval

parent 3dae253d
......@@ -143,32 +143,43 @@
</tr>
@endif
@endforeach
@else
<tr>
<td class="text-center" colspan="6">No overhead submitted</td>
</tr>
@endif
</table>
@endif
@if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
<table class="ui unstackable celled table">
<thead>
<tr>
<th style="width: 10%" class="center aligned">Date</th>
<th style="width: 25%" class="single line"> Overhead Description</th>
<th class="center aligned">Notes</th>
</tr>
</thead>
@if($td)
@foreach($td as $key => $value)
@if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid)
<tr>
<td style="width: 10%" class="center aligned">{{data_get($value, 'td_date')}}</td>
<td style="width: 25%" class="single line">{{data_get($value, 'td_overhead_desc')}}</td>
<td>{{data_get($value, 'td_overhead_note')}}</td>
</tr>
@endif
@endforeach
@endif
</table>
@endif
<?php
$checknotes = $td->where('td_overhead_note', '<>', null);
// dd($checknotes);
?>
@if(count($checknotes) < 0)
@if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
<table class="ui unstackable celled table">
<thead>
<tr>
<th style="width: 10%" class="center aligned">Date</th>
<th style="width: 25%" class="single line"> Overhead Description</th>
<th class="center aligned">Notes</th>
</tr>
</thead>
@if($td)
@foreach($td as $key => $value)
@if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid)
<tr>
<td style="width: 10%" class="center aligned">{{data_get($value, 'td_date')}}</td>
<td style="width: 25%" class="single line">{{data_get($value, 'td_overhead_desc')}}</td>
<td>{{data_get($value, 'td_overhead_note')}}</td>
</tr>
@endif
@endforeach
@endif
</table>
@endif
@endif
@if(data_get($staff,'attachment'))
<table class="ui unstackable celled table">
......
......@@ -142,7 +142,7 @@
</tr>
@endforeach
</tbody>
<tfoot>
<!-- <tfoot>
<th colspan="3">Total (A)</th>
@if($phase == 1)
@for($i = 0; $i < 15 ; $i++)
......@@ -183,9 +183,11 @@
@endif
<th>@if($totalchargehrs){{ $totalchargehrs }}@else 0 @endif</th>
<th>@if($totalchargehrs){{ number_format($totalchargehrs/8, 1, '.', '') }}@else 0 @endif</th>
</tfoot>
</tfoot> -->
</table>
</div>
<div class="ui segment">
<form action="{{ route('timesheet::dashboard.verify') }}" method="POST" class="ui form">
{{csrf_field()}}
<input type="hidden" name="tpid" value="{{ data_get($profile,'id') }}">
......@@ -209,7 +211,7 @@
</div>
<div class="field">
<label>Remarks</label>
<textarea name="remarks"></textarea>
<textarea rows="3" name="remarks"></textarea>
</div>
<button class="ui primary button" type="submit">Submit</button>
</form>
......
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