43 lines
2.2 KiB
PHP
43 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>Jenis Sampah / Tahun</th>
|
|
<th>Total Amount of Waste open-burned<br>(Wet Weight)<br>(Gg Waste)</th>
|
|
<th>Kandungan Bahan Kering<br>dm<br>(fraction)</th>
|
|
<th>Fraction of Carbon in Dry Matter<br>CF<br>(fraction)</th>
|
|
<th>Fraction of Fossil Carbon in Total Carbon<br>FCF<br>(fraction)</th>
|
|
<th>Oxidation Factor<br>OF<br>(fraction)</th>
|
|
<th>Conversion Factor<br>44 / 12</th>
|
|
<th>Fossil CO<sub>2</sub> Emissions<br>(Gg CO<sub>2</sub>)</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$total = 0;
|
|
@endphp
|
|
@foreach ($emisiData as $data)
|
|
@php
|
|
$total += $data->co2;
|
|
@endphp
|
|
<tr class="text-right">
|
|
<td class="text-left">{{ $data->activity->name }} </td>
|
|
<td>{{ $isExport ? $data->open_burned : getFormattedValue($data->open_burned, 4) }}</td>
|
|
<td>{{ $isExport ? $data->dry_matter : getFormattedValue($data->dry_matter, 4) }}</td>
|
|
<td>{{ $isExport ? $data->ef_carbon_f : getFormattedValue($data->ef_carbon_f) }}</td>
|
|
<td>{{ $isExport ? $data->ef_fossil_carbon_f : getFormattedValue($data->ef_fossil_carbon_f) }}</td>
|
|
<td>{{ $isExport ? $data->ef_oxidation_f : getFormattedValue($data->ef_oxidation_f) }}</td>
|
|
<td>{{ $isExport ? $data->ef_cf : getFormattedValue($data->ef_cf) }}</td>
|
|
<td>{{ $isExport ? $data->co2 : getFormattedValue($data->co2, 4) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
<tfoot>
|
|
<tr class="text-right font-weight-bold">
|
|
<td class="text-center" colspan="7">Total</td>
|
|
<td>{{ $isExport ? $total : getFormattedValue($total, 4) }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|