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

78 lines
3.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 rowspan="3">Species / Livestock Category</th>
<th>Number of Animals</th>
<th>Default N Excretion Rate</th>
<th>Typical animal mass for livestock category</th>
<th>Annual N excretion per head of species / livestock category</th>
<th>Fraction of total annual nitrogen excretion managed in MMS for each species / livestock category
</th>
<th>Total nitrogen excretion for the MMS</th>
<th>Emission factor for direct N<sub>2</sub>O-N emissions from MMS</th>
<th>Annual direct N2O emissions from Manure Management</th>
</tr>
<tr>
<th>(head)</th>
<th>[kg N (1000 kg animal)<sup>-1</sup> day<sup>-1</sup>]</th>
<th>(kg)</th>
<th>(kg N animal<sup>-1</sup> year<sup>-1</sup>)</th>
<th>(-)</th>
<th>(kg N yr-1)</th>
<th>[kg N<sub>2</sub>O-N (kg N in MMS)<sup>-1</sup>]</th>
<th>kg N<sub>2</sub>O yr<sup>-1</sup></th>
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th>Nex<sub>(T)</sub> = Nrate<sub>(T)</sub> * TAM * 10<sup>-3</sup> * 365</th>
<th></th>
<th>NE<sub>MMS</sub> = N<sub>(T)</sub> * Nex<sub>(T)</sub> * MS<sub>(T,S)</sub></th>
<th></th>
<th>N<sub>2</sub>O<sub>(mm)</sub> = NE<sub>MMS</sub> * EF<sub>3(S)</sub> * 44/28</th>
</tr>
<tr>
<th>T</th>
<th>N<sub>(T)</sub></th>
<th>N<sub>rate(T)</sub></th>
<th>TAM</th>
<th>Nex<sub>(T)</sub></th>
<th>MS<sub>(T,S)</sub></th>
<th>NE<sub>MMS</sub></th>
<th>EF<sub>3(S)</sub></th>
<th>N<sub>2</sub>O<sub>D(mm)</sub></th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->n2o_d;
@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->num_animal : getFormattedValue($data->num_animal) }}</td>
<td>{{ $isExport ? $data->ef_excretion_rate : getFormattedValue($data->ef_excretion_rate) }}</td>
<td>{{ $isExport ? $data->ef_tam : getFormattedValue($data->ef_tam) }}</td>
<td>{{ $isExport ? $data->nex : getFormattedValue($data->nex) }}</td>
<td>{{ $isExport ? $data->ef_nitrogen_fraction : getFormattedValue($data->ef_nitrogen_fraction) }}</td>
<td>{{ $isExport ? $data->ne_mms : getFormattedValue($data->ne_mms) }}</td>
<td>{{ $isExport ? $data->ef_mms : getFormattedValue($data->ef_mms) }}</td>
<td>{{ $isExport ? $data->n2o_d : getFormattedValue($data->n2o_d, 4) }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="text-right font-weight-bold">
<td class="text-center" colspan="8">Total</td>
<td>{{ $isExport ? $total : getFormattedValue($total, 4) }}</td>
</tr>
</tfoot>
</table>
</div>