Commit 2f385a30 by Azhan Hannan

remove thead empty overhead, divide segment approval

parent 3dae253d
...@@ -143,10 +143,20 @@ ...@@ -143,10 +143,20 @@
</tr> </tr>
@endif @endif
@endforeach @endforeach
@else
<tr>
<td class="text-center" colspan="6">No overhead submitted</td>
</tr>
@endif @endif
</table> </table>
@endif @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')) @if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
...@@ -169,6 +179,7 @@ ...@@ -169,6 +179,7 @@
@endif @endif
</table> </table>
@endif @endif
@endif
@if(data_get($staff,'attachment')) @if(data_get($staff,'attachment'))
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
</tr> </tr>
@endforeach @endforeach
</tbody> </tbody>
<tfoot> <!-- <tfoot>
<th colspan="3">Total (A)</th> <th colspan="3">Total (A)</th>
@if($phase == 1) @if($phase == 1)
@for($i = 0; $i < 15 ; $i++) @for($i = 0; $i < 15 ; $i++)
...@@ -183,9 +183,11 @@ ...@@ -183,9 +183,11 @@
@endif @endif
<th>@if($totalchargehrs){{ $totalchargehrs }}@else 0 @endif</th> <th>@if($totalchargehrs){{ $totalchargehrs }}@else 0 @endif</th>
<th>@if($totalchargehrs){{ number_format($totalchargehrs/8, 1, '.', '') }}@else 0 @endif</th> <th>@if($totalchargehrs){{ number_format($totalchargehrs/8, 1, '.', '') }}@else 0 @endif</th>
</tfoot> </tfoot> -->
</table> </table>
</div>
<div class="ui segment">
<form action="{{ route('timesheet::dashboard.verify') }}" method="POST" class="ui form"> <form action="{{ route('timesheet::dashboard.verify') }}" method="POST" class="ui form">
{{csrf_field()}} {{csrf_field()}}
<input type="hidden" name="tpid" value="{{ data_get($profile,'id') }}"> <input type="hidden" name="tpid" value="{{ data_get($profile,'id') }}">
...@@ -209,7 +211,7 @@ ...@@ -209,7 +211,7 @@
</div> </div>
<div class="field"> <div class="field">
<label>Remarks</label> <label>Remarks</label>
<textarea name="remarks"></textarea> <textarea rows="3" name="remarks"></textarea>
</div> </div>
<button class="ui primary button" type="submit">Submit</button> <button class="ui primary button" type="submit">Submit</button>
</form> </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