50 lines
1.9 KiB
PHP
50 lines
1.9 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 rowspan="4">Subcategories for reporting year</th>
|
|
<th>Annual amount of Urea Fertilization</th>
|
|
<th>Emission factor</th>
|
|
<th>Annual CO<sub>2</sub>-C emissions from Urea Fertilization</th>
|
|
</tr>
|
|
<tr>
|
|
<th>(tonnes urea yr<sup>-1</sup>)</th>
|
|
<th>[tonnes of C (tonne of urea)<sup>-1</sup>]</th>
|
|
<th>(tonnes C yr<sup>-1</sup>)</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th>default is 0.20</th>
|
|
<th>CO<sub>2</sub> Emission =(M * EF) * 44 / 12</th>
|
|
</tr>
|
|
<tr>
|
|
<th>M</th>
|
|
<th>EF</th>
|
|
<th>CO<sub>2</sub> Emission</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$total = 0;
|
|
@endphp
|
|
@foreach ($emisiData as $data)
|
|
@php
|
|
$total += $data->co2_emission;
|
|
@endphp
|
|
<tr class="text-right">
|
|
<td class="text-left">{{ $data->activity->name }}</td>
|
|
<td>{{ $isExport ? $data->urea : getFormattedValue($data->urea) }}</td>
|
|
<td>{{ $isExport ? $data->ef_urea : getFormattedValue($data->ef_urea) }}</td>
|
|
<td>{{ $isExport ? $data->co2_emission : getFormattedValue($data->co2_emission, 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>
|