sigd/resources/views/modules/reports/worksheet/tables/4B2.blade.php

47 lines
1.7 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>
</tr>
<tr>
<th></th>
<th>Jumlah sampah yang diolah secara biologi dlm satu tahun<br>(Gg)</th>
<th>Emission Factor<br>(g N<sub>2</sub>O / kg waste treated)</th>
<th>Net Annual Nitrous Oxide Emissions<br>(Gg N<sub>2</sub>O)</th>
</tr>
<tr>
<th></th>
<th>A</th>
<th>B</th>
<th>C = A x B x (10<sup>-3</sup>)</th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->n2o;
@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->n2o : getFormattedValue($data->n2o, 4) }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="text-right font-weight-bold">
<td class="text-center" colspan="3">Total</td>
<td>{{ $isExport ? $total : getFormattedValue($total, 4) }}</td>
</tr>
</tfoot>
</table>
</div>