sigd/resources/views/modules/reports/worksheet/tables/4A-a.blade.php

59 lines
2.7 KiB
PHP

@php
$unmanaged_shallow_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'unmanaged_shallow_mcf');
$unmanaged_deep_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'unmanaged_deep_mcf');
$managed_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'managed_mcf');
$managed_semi_aerobic_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'managed_semi_aerobic_mcf');
$uncategorised_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'uncategorised_mcf');
$total_weighted_mcf = \App\Models\ReferenceEf::getValue('timbulan_sampah', 'total_weighted_mcf');
@endphp
<div class="table-responsive" style="overflow-x: auto;">
<table class="table table-bordered table-striped" style="min-width: 1095px;">
<thead class="table-info text-white text-center">
<tr>
<!-- <th></th> -->
<th>Unmanaged, Shallow</th>
<th>Unmanaged, Deep</th>
<th>Managed</th>
<th>Managed, Semi-Aerobic</th>
<th>Uncategorised</th>
<th rowspan="3">Total Weighted MCF</th>
<!-- <th rowspan="2"></th> -->
</tr>
<tr>
<!-- <th></th> -->
<th>MCF</th>
<th>MCF</th>
<th>MCF</th>
<th>MCF</th>
<th>MCF</th>
<!-- <th></th> -->
</tr>
<tr>
<!-- <th></th> -->
<th>0,4</th>
<th>0,8</th>
<th>1</th>
<th>0,5</th>
<th>0,6</th>
<!-- <th></th> -->
</tr>
</thead>
<tbody>
<tr class="text-right">
<td>{{ $isExport ? $unmanaged_shallow_mcf : getFormattedValue($unmanaged_shallow_mcf) }}%</td>
<td>{{ $isExport ? $unmanaged_deep_mcf : getFormattedValue($unmanaged_deep_mcf) }}%</td>
<td>{{ $isExport ? $managed_mcf : getFormattedValue($managed_mcf) }}%</td>
<td>{{ $isExport ? $managed_semi_aerobic_mcf : getFormattedValue($managed_semi_aerobic_mcf) }}%</td>
<td>{{ $isExport ? $uncategorised_mcf : getFormattedValue($uncategorised_mcf) }}%</td>
<td>{{ $isExport ? $total_weighted_mcf : getFormattedValue($total_weighted_mcf) }}</td>
</tr>
</tbody>
<tfoot>
<tr class="text-right font-weight-bold">
<td class="text-center" colspan="8">Total</td>
<td>{{ $isExport ? $total_weighted_mcf : getFormattedValue($total_weighted_mcf) }}</td>
</tr>
</tfoot>
</table>
</div>