67 lines
3.0 KiB
PHP
67 lines
3.0 KiB
PHP
<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>A</th>
|
|
<th>B</th>
|
|
<th>C</th>
|
|
<th>D</th>
|
|
<th>E</th>
|
|
<th>F</th>
|
|
<th>G</th>
|
|
<th>H</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Tipe pembuangan atau pengolahan</th>
|
|
<th>Fraksi Grup Income<br>(U<sub>i</sub>)<br>(fraction)</th>
|
|
<th>Tingkat penggunaan<br>(T<sub>ij</sub>)<br>(fraction)</th>
|
|
<th>Faktor emisi<br>(EF<sub>j</sub>)<br>(kg CH<sub>4</sub>/kg BOD)</th>
|
|
<th>Organically degradable material in wastewater<br>(TOW)<br>(kg BOD / yr)</th>
|
|
<th>Sludge removed<br>(S)<br>(kg BOD / yr)</th>
|
|
<th>Methane recovered and flared<br>(R)<br>(kg CH<sub>4</sub> / yr)</th>
|
|
<th>Emisi Gas Metana (net)<br>(CH<sub>4</sub>)<br>(kg CH<sub>4</sub> / yr)</th>
|
|
<th>Emisi gas Metana (net)<br>(CH<sub>4</sub>)<br>(Gg CH<sub>4</sub> / yr)</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>G = [(A . B. C) . (D - E)] - F</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$total = 0;
|
|
@endphp
|
|
@foreach ($emisiData as $data)
|
|
@php
|
|
$total += $data->ch4_gg;
|
|
@endphp
|
|
<tr class="text-right">
|
|
<td class="text-left">{{ $data->activity->name }} URBAN</td>
|
|
<td>{{ $isExport ? $data->group_fraction : getFormattedValue($data->group_fraction, 2) }}</td>
|
|
<td>{{ $isExport ? $data->usage_level : getFormattedValue($data->usage_level, 6) }}</td>
|
|
<td>{{ $isExport ? $data->ef : getFormattedValue($data->ef) }}</td>
|
|
<td>{{ $isExport ? $data->tow : getFormattedValue($data->tow, 2) }}</td>
|
|
<td>{{ $isExport ? $data->ef_sludge_removed : getFormattedValue($data->ef_sludge_removed) }}</td>
|
|
<td>{{ $isExport ? $data->ef_methane_flared : getFormattedValue($data->ef_methane_flared) }}</td>
|
|
<td>{{ $isExport ? $data->ch4_kg : getFormattedValue($data->ch4_kg, 2) }}</td>
|
|
<td>{{ $isExport ? $data->ch4_gg : getFormattedValue($data->ch4_gg, 2) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="text-right font-weight-bold">
|
|
<td class="text-center" colspan="8">Total</td>
|
|
<td>{{ $isExport ? $total : getFormattedValue($total, 2) }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|