Commit 2f385a30 by Azhan Hannan

remove thead empty overhead, divide segment approval

parent 3dae253d
...@@ -143,32 +143,43 @@ ...@@ -143,32 +143,43 @@
</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
@if(data_get($staff,'team.pelulus') == data_get($approval,'id')) <?php
<table class="ui unstackable celled table"> $checknotes = $td->where('td_overhead_note', '<>', null);
<thead> // dd($checknotes);
<tr> ?>
<th style="width: 10%" class="center aligned">Date</th>
<th style="width: 25%" class="single line"> Overhead Description</th> @if(count($checknotes) < 0)
<th class="center aligned">Notes</th> @if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
</tr> <table class="ui unstackable celled table">
</thead> <thead>
@if($td) <tr>
@foreach($td as $key => $value) <th style="width: 10%" class="center aligned">Date</th>
@if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid) <th style="width: 25%" class="single line"> Overhead Description</th>
<tr> <th class="center aligned">Notes</th>
<td style="width: 10%" class="center aligned">{{data_get($value, 'td_date')}}</td> </tr>
<td style="width: 25%" class="single line">{{data_get($value, 'td_overhead_desc')}}</td> </thead>
<td>{{data_get($value, 'td_overhead_note')}}</td> @if($td)
</tr> @foreach($td as $key => $value)
@endif @if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid)
@endforeach <tr>
@endif <td style="width: 10%" class="center aligned">{{data_get($value, 'td_date')}}</td>
</table> <td style="width: 25%" class="single line">{{data_get($value, 'td_overhead_desc')}}</td>
@endif <td>{{data_get($value, 'td_overhead_note')}}</td>
</tr>
@endif
@endforeach
@endif
</table>
@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