Commit 19511ea7 by Azhan Hannan

changes

parent 4daf75b4
......@@ -2,6 +2,7 @@
@section('content')
<!-- Staff Timesheet Section Start -->
<div class="ui segment">
<div class="ui blue left ribbon label">
Timesheet Approval
......@@ -183,10 +184,9 @@
<?php
$checknotes = $td->where('td_overhead_note', '<>', null);
// dd($checknotes);
?>
@if(count($checknotes) < 0)
@if(count($checknotes) > 0)
@if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
<table class="ui unstackable celled table">
<thead>
......@@ -200,7 +200,7 @@
@foreach($td as $key => $value)
@if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid)
<tr>
<td style="width: 10%" class="center aligned">>{{ date("d-m-Y", strtotime(data_get($value, 'td_date'))) }}</td>
<td style="width: 10%" class="center aligned">{{ date("d-m-Y", strtotime(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>
......@@ -284,6 +284,7 @@
@endforeach
</div>
</div>
<!-- Staff Timesheet Section End -->
<!-- Verification Section Start -->
@if(count($profile) > 0)
......
......@@ -117,8 +117,8 @@
<td style="width: 12%;" class="text-center">
@if(data_get($tpcharge,'tp_timesheet_sts') == 5|| data_get($tpcharge,'tp_timesheet_sts') == 6)
<button class="center aligned ui red icon button" onclick="window.location.href='{{ route('timesheet::form.rejected', ['tpid' => data_get($tpcharge,'id')]) }}';">Resubmit</button>
@elseif(data_get($value,'tm_timesheet_master_sts') == 1)
<!-- <button class="center aligned ui blue icon button" onclick="window.location.href='{{ route('timesheet::form.chargeableForm', ['year' => data_get($tpcharge,'tp_year'), 'month' => data_get($tpcharge,'tp_month'), 'phase' => data_get($tpcharge,'tp_phase')]) }}';">Edit Draft</button> -->
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 2) Waiting for Verification
@elseif(data_get($tpcharge,'tp_timesheet_sts') == 3) Waiting for Approval
@else
<!-- <button class="center aligned ui red icon button disabled">Resubmit</button> -->
@endif
......@@ -167,8 +167,8 @@
<td style="width: 12%;" class="text-center">
@if(data_get($tpoverhead,'tp_timesheet_sts') == 5 || data_get($tpoverhead,'tp_timesheet_sts') == 6)
<button class="center aligned ui red icon button" onclick="window.location.href='{{ route('timesheet::form.rejected', ['tpid' => data_get($tpoverhead,'id')]) }}';">Resubmit</button>
@elseif(data_get($value,'tm_timesheet_master_sts') == 1)
return ke edit overhead
@elseif(data_get($tpoverhead,'tp_timesheet_sts') == 2) Waiting for Verification
@elseif(data_get($tpoverhead,'tp_timesheet_sts') == 3) Waiting for Approval
@else
<!-- <button class="center aligned ui red icon button disabled">Resubmit</button> -->
@endif
......
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