@foreach (['positif' => 'bg-gradient-success', 'netral' => 'bg-gradient-warning', 'negatif' => 'bg-gradient-danger'] as $sent => $badge)

{{ 'Total ' . ucfirst($sent) }}

{{ $counts['all'][$sent] }}

@endforeach
{{-- ====================== --}} {{-- Section: Charts Row --}} {{-- ====================== --}}
Perbandingan Sentimen E-Wallet
Tren Sentimen E-Wallet
{{-- ====================== --}} {{-- Section: Pie + Table --}} {{-- ====================== --}}
Distribusi Persentase Sentimen
Perbandingan Sentimen Antar Brand
@foreach (['Dana' => 'dana', 'GoPay' => 'gopay', 'ShopeePay' => 'shopeepay'] as $label => $key) @php $d = $counts[$key]; $net = (($d['positif'] - $d['negatif']) / max(1, array_sum($d))) * 100; @endphp @endforeach
E-Wallet Positif Netral Negatif Net Score
{{ $label }} {{ $d['positif'] }} {{ $d['netral'] }} {{ $d['negatif'] }} {{ number_format($net, 1) }}%
{{-- ====================== --}} {{-- Section: WordClouds --}} {{-- ====================== --}}
@foreach (['positif', 'netral', 'negatif'] as $s)
{{ ucfirst($s) }}
@endforeach
{{-- ====================== --}} {{-- SCRIPTS --}} {{-- ====================== --}}