Commit 9a697d00 by hannan

remove nonchargeable in timesheet approval

parent a563b89f
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
<thead> <thead>
<tr> <tr>
<th colspan="3" style="width: 60%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th> <th colspan="2" style="width: 60%;"><i class="dropdown icon"></i>{{ data_get($staff,'fullname') }}</th>
<th style="width: 15%;" class="center aligned"> <th style="width: 15%;" class="center aligned">
@if($staff->status == 1 || $staff->status == null) In Preparation @if($staff->status == 1 || $staff->status == null) In Preparation
@elseif($staff->status == 2) <i class="red attention icon"></i> Submitted @elseif($staff->status == 2) <i class="red attention icon"></i> Submitted
...@@ -39,9 +39,8 @@ ...@@ -39,9 +39,8 @@
</th> </th>
</tr> </tr>
<tr> <tr>
<td style="width: 20%;">Chargeable (A) : {{ data_get($staff,'chargeable') }}</td> <td style="width: 30%;">Chargeable (A) : {{ data_get($staff,'chargeable') }}</td>
<td style="width: 20%;">Nonchargeable (B) : {{ data_get($staff,'nonchargeable') }}</td> <td style="width: 30%;">Overhead (B) : {{ data_get($staff,'overhead') }}</td>
<td style="width: 20%;">Overhead (C) : {{ data_get($staff,'overhead') }}</td>
<td style="width: 15%;">Overtime: {{ data_get($staff,'overtime') }}</td> <td style="width: 15%;">Overtime: {{ data_get($staff,'overtime') }}</td>
<td class="right aligned">Total Hours/Days: {{ data_get($staff,'totalhrs')." hours/ ".number_format(data_get($staff,'totalhrs')/8, 1, '.', '')." days" }}</td> <td class="right aligned">Total Hours/Days: {{ data_get($staff,'totalhrs')." hours/ ".number_format(data_get($staff,'totalhrs')/8, 1, '.', '')." days" }}</td>
</tr> </tr>
...@@ -51,8 +50,7 @@ ...@@ -51,8 +50,7 @@
<?php <?php
$cptype = "A"; $cptype = "A";
$ncptype = "B"; $otype = "B";
$otype = "C";
$td = $checktd->where('tm_staff_id', $staff->staff_id); $td = $checktd->where('tm_staff_id', $staff->staff_id);
$detail = $details->where('staffid', $staff->staff_id); $detail = $details->where('staffid', $staff->staff_id);
$ts = $checkts->where('tm_staff_id', $staff->staff_id); $ts = $checkts->where('tm_staff_id', $staff->staff_id);
...@@ -82,18 +80,6 @@ ...@@ -82,18 +80,6 @@
</tr> </tr>
@endforeach @endforeach
@endif @endif
@if($detail->where('ptype', 2))
@foreach($detail->where('ptype', 2) as $key => $nonchargeable)
<tr>
<td style="width: 6%;" class="center aligned">{{ $ncptype }}</td>
<td style="width: 17%;">{{ data_get($nonchargeable, 'pcode') }}</td>
<td style="width: 26%;">{{ data_get($nonchargeable, 'pname') }}</td>
<td style="width: 26%;">{{ data_get($nonchargeable, 'pmname') }}</td>
<td style="width: 12.5%;" class="center aligned">{{ data_get($nonchargeable, 'hours') }}</td>
<td style="width: 12.5%;" class="center aligned">{{ number_format(data_get($nonchargeable, 'hours')/8, 1, '.', '') }}</td>
</tr>
@endforeach
@endif
@if($detail->where('ptype', 3)) @if($detail->where('ptype', 3))
@foreach($detail->where('ptype', 3) as $key => $chargeable) @foreach($detail->where('ptype', 3) as $key => $chargeable)
<tr> <tr>
......
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