sigd/resources/views/modules/reports/worksheet/tables/3C6.blade.php

64 lines
3.0 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>Total nitrogen excretion for the MMS</th>
<th>Fraction of managed livestock manure nitrogen that volatilises</th>
<th>Amount of manure nitrogen that is loss due to volatilisation of NH<sub>3</sub> and
NO<sub>x</sub></th>
<th>Emission factor for N<sub>2</sub>O emissions from atmospheric deposition of nitrogen on soils
and water surfaces</th>
<th>Indirect N<sub>2</sub>O emissions due to volatilization from Manure Management</th>
</tr>
<tr>
<th>kg N yr<sup>-1</sup></th>
<th>(-)</th>
<th>kg N yr<sup>-1</sup></th>
<th>[kg N<sub>2</sub>O-N (kg NH<sub>3</sub>-N + NO<sub>x</sub>-N volatilised)<sup>-1</sup>]</th>
<th>kg N<sub>2</sub>O yr<sup>-1</sup></th>
</tr>
<tr>
<th></th>
<th></th>
<th>N<sub>volatilization</sub>-MMS = NE<sub>MMS</sub> * Frac<sub>(GasMS)</sub></th>
<th></th>
<th>N<sub>2</sub>O<sub>G(mm)</sub> = NE<sub>volatilization-MMS</sub> * EF<sub>4</sub> * 44/28</th>
</tr>
<tr>
<th>T</th>
<th>NE<sub>MMS</sub></th>
<th>Frac<sub>(GasMS)</sub></th>
<th>N<sub>volatilization-MMS</sub></th>
<th>EF<sub>4</sub></th>
<th>N<sub>2</sub>O<sub>G(mm)</sub></th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->n2o_g;
@endphp
<tr class="text-right">
<td class="text-left">{{ $data->activity->name }} {{ strtoupper($data->tag_1) }}
{{ strtoupper(str_replace('_', ' ', $data->tag_2)) }}</td>
<td>{{ $isExport ? $data->ne_mms : getFormattedValue($data->ne_mms, 4) }}</td>
<td>{{ $isExport ? $data->ef_frac : getFormattedValue($data->ef_frac, 4) }}</td>
<td>{{ $isExport ? $data->n_volatilization_mms : getFormattedValue($data->n_volatilization_mms, 4) }}</td>
<td>{{ $isExport ? $data->ef_n2o : getFormattedValue($data->ef_n2o, 4) }}</td>
<td>{{ $isExport ? $data->n2o_g : getFormattedValue($data->n2o_g, 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>