sigd/resources/views/modules/reports/worksheet/tables/4C2c.blade.php

37 lines
1.6 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>Type of Waste / Tahun</th>
<th>Total Amount of Waste Open-burned (Wet Weight)<br>(Gg Sampah)</th>
<th>Dry Matter Content MSW<br>(%)</th>
<th>Nitrous Oxide Emission Factor (kg N<sub>2</sub>O / Gg Dry Waste)</th>
<th>Nitrous Oxide Emissions<br>(Gg N<sub>2</sub>O)</th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->n2o;
@endphp
<tr class="text-right">
<td class="text-left"></td>
<td>{{ $isExport ? $data->open_burned : getFormattedValue($data->open_burned, 4) }}</td>
<td>{{ $isExport ? $data->ef_msw : getFormattedValue($data->ef_msw) }}</td>
<td>{{ $isExport ? $data->ef_nitrous_oxide : getFormattedValue($data->ef_nitrous_oxide) }}</td>
<td>{{ $isExport ? $data->n2o : getFormattedValue($data->n2o, 4) }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr class="text-right font-weight-bold">
<td class="text-center" colspan="4">Total</td>
<td>{{ $isExport ? $total : getFormattedValue($total, 4) }}</td>
</tr>
</tfoot>
</table>
</div>