Commit fdada6dc by hannan

insert 3f logo in img folder

parent ec18097c
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<tbody> <tbody>
<tr> <tr>
<td rowspan="3"> <td rowspan="3">
<img src="https://www.3fresources.com/app/themes/3f/images/3f-logo.svg" height="126" width="126" alt="3f-logo"> <img src="{{ url('img/3f-logo.svg') }}" height="126" width="126" alt="3f-logo">
</td> </td>
<td>Name</td> <td>Name</td>
<td>:</td> <td>:</td>
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<tr> <tr>
<th colspan="3">Chargeable</th> <th colspan="3">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></th> <th colspan="2">Total</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -104,7 +104,8 @@ ...@@ -104,7 +104,8 @@
@endfor @endfor
@endif @endif
<td>Total Hours</td> <td>Hours</td>
<td>Days</td>
</tr> </tr>
@foreach($chargeablelist as $key => $projectchargeable) @foreach($chargeablelist as $key => $projectchargeable)
<?php $totalcharge = 0; ?> <?php $totalcharge = 0; ?>
...@@ -167,8 +168,10 @@ ...@@ -167,8 +168,10 @@
@if($valchargehour) @if($valchargehour)
<td>{{ $totalcharge }}</td> <td>{{ $totalcharge }}</td>
<td>{{ $totalcharge/8 }}</td>
@else @else
<td>0</td> <td>0</td>
<td>0</td>
@endif @endif
</tr> </tr>
...@@ -208,6 +211,7 @@ ...@@ -208,6 +211,7 @@
@endif @endif
<th>@if($totalchargehrs){{ $totalchargehrs }}@else 0 @endif</th> <th>@if($totalchargehrs){{ $totalchargehrs }}@else 0 @endif</th>
<th>@if($totalchargehrs){{ $totalchargehrs/8 }}@else 0 @endif</th>
</tfoot> </tfoot>
</table> </table>
</div> </div>
...@@ -218,7 +222,7 @@ ...@@ -218,7 +222,7 @@
<tr> <tr>
<th colspan="2">Non-Chargeable</th> <th colspan="2">Non-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></th> <th colspan="2">Total</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -236,7 +240,8 @@ ...@@ -236,7 +240,8 @@
@endfor @endfor
@endif @endif
<td>Total Hours</td> <td>Hours</td>
<td>Days</td>
</tr> </tr>
@foreach($nonchargeablelist as $key => $projectnonchargeable) @foreach($nonchargeablelist as $key => $projectnonchargeable)
...@@ -301,8 +306,10 @@ ...@@ -301,8 +306,10 @@
@if($valnonchargehour) @if($valnonchargehour)
<td>{{ $totalnoncharge }}</td> <td>{{ $totalnoncharge }}</td>
<td>{{ $totalnoncharge/8 }}</td>
@else @else
<td>0</td> <td>0</td>
<td>0</td>
@endif @endif
</tr> </tr>
@endforeach @endforeach
...@@ -340,6 +347,7 @@ ...@@ -340,6 +347,7 @@
@endfor @endfor
@endif @endif
<th>@if($totalnonchargehrs){{ $totalnonchargehrs }}@else 0 @endif</th> <th>@if($totalnonchargehrs){{ $totalnonchargehrs }}@else 0 @endif</th>
<th>@if($totalnonchargehrs){{ $totalnonchargehrs/8 }}@else 0 @endif</th>
</tfoot> </tfoot>
</table> </table>
</div> </div>
...@@ -350,7 +358,7 @@ ...@@ -350,7 +358,7 @@
<tr> <tr>
<th colspan="2">Overhead</th> <th colspan="2">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></th> <th colspan="2">Total</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
...@@ -368,7 +376,8 @@ ...@@ -368,7 +376,8 @@
@endfor @endfor
@endif @endif
<td>Total Hours</td> <td>Hours</td>
<td>Days</td>
</tr> </tr>
@foreach($overheadlist as $key => $projectoverhead) @foreach($overheadlist as $key => $projectoverhead)
<?php $totaloverhead = 0; ?> <?php $totaloverhead = 0; ?>
...@@ -430,8 +439,10 @@ ...@@ -430,8 +439,10 @@
@if($valchargehour) @if($valchargehour)
<td>{{ $totaloverhead }}</td> <td>{{ $totaloverhead }}</td>
<td>{{ $totaloverhead/8 }}</td>
@else @else
<td>0</td> <td>0</td>
<td>0</td>
@endif @endif
</tr> </tr>
...@@ -469,6 +480,7 @@ ...@@ -469,6 +480,7 @@
@endfor @endfor
@endif @endif
<th>@if($totaloverheadhrs) {{ $totaloverheadhrs }} @else 0 @endif</th> <th>@if($totaloverheadhrs) {{ $totaloverheadhrs }} @else 0 @endif</th>
<th>@if($totaloverheadhrs) {{ $totaloverheadhrs/8 }} @else 0 @endif</th>
</tfoot> </tfoot>
</table> </table>
</div> </div>
...@@ -497,11 +509,11 @@ ...@@ -497,11 +509,11 @@
<div class="ui segment"> <div class="ui segment">
<table id="printtabl6" class="ui celled structured table unstackable"> <table id="printtabl6" class="ui celled structured table unstackable">
<thead> <!-- <thead>
<th colspan="@if($phase == 1) 17 @else {{$daymonth-13}} @endif"></th> <th colspan="@if($phase == 1) 17 @else {{$daymonth-13}} @endif"></th>
<th>Total hours</th> <th>Total hours</th>
<th>Total days</th> <th>Total days</th>
</thead> </thead> -->
<tbody> <tbody>
<tr> <tr>
<td style="width: 4%;"></td> <td style="width: 4%;"></td>
...@@ -673,7 +685,7 @@ ...@@ -673,7 +685,7 @@
</div> </div>
<br> <br>
<button type="button" onclick="printdiv('print_div')"> print</button> <button type="button" class="ui primary button" onclick="printdiv('print_div')">Print</button>
</div> </div>
......
...@@ -96,13 +96,13 @@ class DashboardController extends Controller ...@@ -96,13 +96,13 @@ class DashboardController extends Controller
$hod = Staff_info::find($user->penyokong) $hod = Staff_info::find($user->penyokong)
->fullname; ->fullname;
// $month = date('n'); $month = date('n');
// $year = date('Y'); $year = date('Y');
// $day = date('j'); $day = date('j');
$month = 7; // $month = 7;
$year = 2022; // $year = 2022;
$day = 2; // $day = 2;
if ($day < 16) { if ($day < 16) {
$phase = 1; $phase = 1;
......
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