@extends('layouts.master') @section('content')
{{ @$title }}
Total Emisi

{{ getFormattedValue(@$cardData['totalEmisi'], 2) }}

Emisi Sektor Energi

{{ getFormattedValue(@$cardData['emisiEnergi'], 2) }}

Emisi Sektor Pertanian

{{ getFormattedValue(@$cardData['emisiPertanian'], 2) }}

Emisi Sektor Lahan

{{ getFormattedValue(@$cardData['emisiLahan'], 2) }}

Emisi Sektor Limbah

{{ getFormattedValue(@$cardData['emisiLimbah'], 2) }}


@php $totalCo2eq = 0; $totalCo2 = 0; $totalCh4 = 0; $totalN2o = 0; $no = 1; @endphp @if(@$tableData) @foreach ($tableData as $sector => $emissions) @php $totalCo2eq += $emissions['co2eq']; $totalCo2 += $emissions['co2']; $totalCh4 += $emissions['ch4']; $totalN2o += $emissions['n2o']; @endphp @endforeach @endif
Emissions CO2 Eq
(Gg)
CO2
(Gg)
CH4
(Gg)
N2O
(Gg)
{{ $no++ }} {{ $sector }} {{ getFormattedValue($emissions['co2eq'], 2) }} {{ getFormattedValue($emissions['co2'], 2) }} {{ getFormattedValue($emissions['ch4'], 2) }} {{ getFormattedValue($emissions['n2o'], 2) }}
TOTAL {{ getFormattedValue($totalCo2eq, 2) }} {{ getFormattedValue($totalCo2, 2) }} {{ getFormattedValue($totalCh4, 2) }} {{ getFormattedValue($totalN2o, 2) }}
@endsection @section('js') @endsection