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

52 lines
2.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></th>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
</tr>
<tr>
<th>Tahun</th>
<th>Population<br>(P)<br>cap</th>
<th>Degradable organic component<br>(BOD)<br>(kg BOD / cap.yr)</th>
<th>Correction factor for industrial BOD discharged in sewers (I) 2</th>
<th>Total Organically degradable material in wastewater<br>(TOW)<br>(kg BOD / yr)</th>
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th>D = A x B x C</th>
</tr>
</thead>
<tbody>
@php
$total = 0;
@endphp
@foreach ($emisiData as $data)
@php
$total += $data->tow;
@endphp
<tr class="text-right">
<td class="text-left"></td>
<td>{{ $isExport ? $data->population : getFormattedValue($data->population, 3) }}</td>
<td>{{ $isExport ? $data->ef_bod : getFormattedValue($data->ef_bod) }}</td>
<td>{{ $isExport ? $data->ef_correction_factor : getFormattedValue($data->ef_correction_factor) }}
</td>
<td>{{ $isExport ? $data->tow : getFormattedValue($data->tow, 2) }}</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, 2) }}</td>
</tr>
</tfoot>
</table>
</div>