Commit 9c423408 by Azhan Hannan

timesheet viewer alignment of notes, chargeable hours, total hours

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