Commit 19511ea7 by Azhan Hannan

changes

parent 4daf75b4
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
@section('content') @section('content')
<!-- Staff Timesheet Section Start -->
<div class="ui segment"> <div class="ui segment">
<div class="ui blue left ribbon label"> <div class="ui blue left ribbon label">
Timesheet Approval Timesheet Approval
...@@ -183,10 +184,9 @@ ...@@ -183,10 +184,9 @@
<?php <?php
$checknotes = $td->where('td_overhead_note', '<>', null); $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')) @if(data_get($staff,'team.pelulus') == data_get($approval,'id'))
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
@foreach($td as $key => $value) @foreach($td as $key => $value)
@if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid) @if($value->td_overhead_note && $value->fk_tm_id == $staff->tmid)
<tr> <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 style="width: 25%" class="single line">{{data_get($value, 'td_overhead_desc')}}</td>
<td>{{data_get($value, 'td_overhead_note')}}</td> <td>{{data_get($value, 'td_overhead_note')}}</td>
</tr> </tr>
...@@ -284,6 +284,7 @@ ...@@ -284,6 +284,7 @@
@endforeach @endforeach
</div> </div>
</div> </div>
<!-- Staff Timesheet Section End -->
<!-- Verification Section Start --> <!-- Verification Section Start -->
@if(count($profile) > 0) @if(count($profile) > 0)
......
...@@ -117,8 +117,8 @@ ...@@ -117,8 +117,8 @@
<td style="width: 12%;" class="text-center"> <td style="width: 12%;" class="text-center">
@if(data_get($tpcharge,'tp_timesheet_sts') == 5|| data_get($tpcharge,'tp_timesheet_sts') == 6) @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> <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) @elseif(data_get($tpcharge,'tp_timesheet_sts') == 2) Waiting for Verification
<!-- <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') == 3) Waiting for Approval
@else @else
<!-- <button class="center aligned ui red icon button disabled">Resubmit</button> --> <!-- <button class="center aligned ui red icon button disabled">Resubmit</button> -->
@endif @endif
...@@ -167,8 +167,8 @@ ...@@ -167,8 +167,8 @@
<td style="width: 12%;" class="text-center"> <td style="width: 12%;" class="text-center">
@if(data_get($tpoverhead,'tp_timesheet_sts') == 5 || data_get($tpoverhead,'tp_timesheet_sts') == 6) @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> <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) @elseif(data_get($tpoverhead,'tp_timesheet_sts') == 2) Waiting for Verification
return ke edit overhead @elseif(data_get($tpoverhead,'tp_timesheet_sts') == 3) Waiting for Approval
@else @else
<!-- <button class="center aligned ui red icon button disabled">Resubmit</button> --> <!-- <button class="center aligned ui red icon button disabled">Resubmit</button> -->
@endif @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