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

49 lines
2.2 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="2">Island</th>
<th rowspan="2">Before</th>
<th rowspan="2">After</th>
<th rowspan="2">Land Area<br>(Ha)</th>
<th colspan="2">Before</th>
<th colspan="2">After</th>
<th colspan="3" rowspan="2">Carbon Stock Change<br>(t-C / yr)</th>
</tr>
<tr>
<th width="75px">AGB<br>(t-C/Ha)</th>
<th>Carbon Stocks<br>(t-C)</th>
<th width="75px">AGB<br>(t-C/Ha)</th>
<th>Carbon Stocks<br>(t-C)</th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->c_change;
@endphp
<tr class="text-right">
<td class="text-left">{{ $data->activity->name }}</td>
<td>{{ $data->before }}</td>
<td>{{ $data->after }}</td>
<td>{{ $isExport ? $data->area : getFormattedValue($data->area, 5) }}</td>
<td>{{ $isExport ? $data->ef_agb_before : getFormattedValue($data->ef_agb_before) }}</td>
<td>{{ $isExport ? $data->c_before : getFormattedValue($data->c_before, 5) }}</td>
<td>{{ $isExport ? $data->ef_agb_after : getFormattedValue($data->ef_agb_after) }}</td>
<td>{{ $isExport ? $data->c_after : getFormattedValue($data->c_after, 5) }}</td>
<td>{{ $isExport ? $data->c_change : getFormattedValue($data->c_change, 5) }}</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, 5) }}</td>
</tr>
</tfoot>
</table>
</div>