Commit 9c423408 by Azhan Hannan

timesheet viewer alignment of notes, chargeable hours, total hours

parent 58649123
......@@ -52,7 +52,7 @@
<table id="printtable2" class="ui celled structured table unstackable">
<thead>
<tr>
<th colspan="3" rowspan="2" class="center aligned">Chargeable</th>
<th colspan="3" rowspan="2" class="center aligned" style="width: 27%;">Chargeable</th>
<th colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th>
<th colspan="2" rowspan="2" class="center aligned">Total</th>
</tr>
......@@ -60,11 +60,11 @@
@if($phase == 1)
@for($i = 0; $i < 15 ; $i++)
<th>{{$i+1}}</th>
<th style="width: 4%;">{{$i+1}}</th>
@endfor
@else
@for($i = 15; $i < $daymonth; $i++)
<th>{{$i+1}}</th>
<th style="width: 4%;">{{$i+1}}</th>
@endfor
@endif
......@@ -149,11 +149,11 @@
@endif
@if($totalcharge)
<td>{{ number_format($totalcharge, 1, '.', '') }}</td>
<td>{{ number_format($totalcharge/8, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td style="width: 5%">0</td>
<td style="width: 5%">0</td>
@endif
</tr>
......@@ -196,8 +196,8 @@
@endfor
@endif
<th>@if($totalchargehrs){{ number_format($totalchargehrs, 1, '.', '') }}@else 0 @endif</th>
<th>@if($totalchargehrs){{ number_format($totalchargehrs/8, 1, '.', '') }}@else 0 @endif</th>
<th style="width: 5%">@if($totalchargehrs){{ number_format($totalchargehrs, 1, '.', '') }}@else 0 @endif</th>
<th style="width: 5%">@if($totalchargehrs){{ number_format($totalchargehrs/8, 1, '.', '') }}@else 0 @endif</th>
</tfoot>
</table>
</div>
......@@ -206,7 +206,7 @@
<table id="printtable4" class="ui celled structured table unstackable">
<thead>
<tr>
<th colspan="2" rowspan="3" class="center aligned">Overhead</th>
<th colspan="2" rowspan="3" class="center aligned" style="width: 27%;">Overhead</th>
<th colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th>
<th colspan="2" rowspan="2" class="center aligned">Total</th>
</tr>
......@@ -224,16 +224,16 @@
@endif
</tr>
<tr>
<!-- <th style="width: 4%;"></th> -->
<!-- <th style="width: 4%"></th> -->
<!-- <th style="width: 23%;">Overhead</th> -->
@if($phase == 1)
@for($i = 0; $i < 15 ; $i++)
<th style="width: 4%;">{{$strdays[$i]}}</th>
<th>{{$strdays[$i]}}</th>
@endfor
@else
@for($i = 15; $i < $daymonth; $i++)
<th style="width: 4%;">{{$strdays[$i]}}</th>
<th>{{$strdays[$i]}}</th>
@endfor
@endif
......@@ -301,11 +301,11 @@
@endif
@if($totaloverhead)
<td>{{ number_format($totaloverhead, 1, '.', '') }}</td>
<td>{{ number_format($totaloverhead/8, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totaloverhead, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totaloverhead/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td style="width: 5%">0</td>
<td style="width: 5%">0</td>
@endif
</tr>
......@@ -327,7 +327,7 @@
}
}
?>
<th>{{ $totaloverheadbyday }}</th>
<th style="width: 4%">{{ $totaloverheadbyday }}</th>
@endfor
@else
@for($i = 15; $i < $daymonth; $i++)
......@@ -343,11 +343,11 @@
}
}
?>
<th>{{ $totaloverheadbyday }}</th>
<th style="width: 4%">{{ $totaloverheadbyday }}</th>
@endfor
@endif
<th>@if($totaloverheadhrs) {{ number_format($totaloverheadhrs, 1, '.', '') }} @else 0 @endif</th>
<th>@if($totaloverheadhrs) {{ number_format($totaloverheadhrs/8, 1, '.', '') }} @else 0 @endif</th>
<th style="width: 5%">@if($totaloverheadhrs) {{ number_format($totaloverheadhrs, 1, '.', '') }} @else 0 @endif</th>
<th style="width: 5%">@if($totaloverheadhrs) {{ number_format($totaloverheadhrs/8, 1, '.', '') }} @else 0 @endif</th>
</tfoot>
</table>
</div>
......@@ -363,7 +363,7 @@
<tr>
<td style="width: 10%;">Date</td>
<td style="width: 17%;">Overhead</td>
<td>Description</td>
<td style="width: @if($phase == 1){{(15*4)+10}}@else{{(($daymonth-15)*4)+10}}@endif%;">Description</td>
</tr>
@if($notes)
@foreach($notes as $key => $value)
......@@ -555,14 +555,14 @@
</td>
@endfor
@endif
<td>
<td style="width: 5%;">
@if($totalot >= 0)
{{ number_format($totalot, 1, '.', '') }}
@else
({{ abs(number_format($totalot, 1, '.', '')) }})
@endif
</td>
<td>
<td style="width: 5%;">
@if($totalot/8 >= 0)
{{ number_format($totalot/8, 1, '.', '') }}
@else
......
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