45 lines
1.8 KiB
PHP
45 lines
1.8 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="3">Species / Livestock Category</th>
|
|
<th>Number of Animals</th>
|
|
<th>Emission Factor for Manure Management</th>
|
|
<th>CH4 Emissions from Manure Management</th>
|
|
</tr>
|
|
<tr>
|
|
<th>(head)</th>
|
|
<th>(kg head<sup>-1</sup> yr<sup>-1</sup>)</th>
|
|
<th>(Gg CH<sub>4</sub> yr<sup>-1</sup>)</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th>
|
|
<th></th>
|
|
<th>CH<sub>4</sub> Manure = N<sub>(T)</sub> * EF<sub>(T)</sub> * 10<sup>-6</sup></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$total = 0;
|
|
@endphp
|
|
@foreach ($emisiData as $data)
|
|
@php
|
|
$total += $data->ch4;
|
|
@endphp
|
|
<tr class="text-right">
|
|
<td class="text-left">{{ $data->activity->name }} {{ strtoupper($data->tag_1) }}</td>
|
|
<td>{{ $isExport ? $data->num_animal : getFormattedValue($data->num_animal) }}</td>
|
|
<td>{{ $isExport ? $data->ef : getFormattedValue($data->ef) }}</td>
|
|
<td>{{ $isExport ? $data->ch4 : getFormattedValue($data->ch4, 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>
|