55 lines
2.2 KiB
PHP
55 lines
2.2 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>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>Jumlah sampah yang diolah secara biologi dlm satu tahun (Gg)</th>
|
|
<th>Faktor Emisi (g CH<sub>4</sub> / kg sampah terolah)</th>
|
|
<th>Gas Metana yang dihasilkan per tahun (Gg CH<sub>4</sub>)</th>
|
|
<th>Gas Metana yang di-recovery / di-flare per tahun<br>(Gg CH<sub>4</sub>)</th>
|
|
<th>Gas Metana yang dihasilkan per tahun<br>(Gg CH<sub>4</sub>)</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
<th>C = (A x B) x 10<sup>-3</sup></th>
|
|
<th></th>
|
|
<th>E = (C - D)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$total = 0;
|
|
@endphp
|
|
@foreach ($emisiData as $data)
|
|
@php
|
|
$total += $data->ch4_final;
|
|
@endphp
|
|
<tr class="text-right">
|
|
<td class="text-left">{{ $data->activity->name }} </td>
|
|
<td>{{ $isExport ? $data->num_waste : getFormattedValue($data->num_waste, 4) }}</td>
|
|
<td>{{ $isExport ? $data->ef : getFormattedValue($data->ef) }}</td>
|
|
<td>{{ $isExport ? $data->ch4 : getFormattedValue($data->ch4, 4) }}</td>
|
|
<td>{{ $isExport ? $data->ch4_recovery : getFormattedValue($data->ch4_recovery, 4) }}</td>
|
|
<td>{{ $isExport ? $data->ch4_final : getFormattedValue($data->ch4_final, 4) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="text-right font-weight-bold">
|
|
<td class="text-center" colspan="5">Total</td>
|
|
<td>{{ $isExport ? $total : getFormattedValue($total, 4) }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|