{{-- HEADER --}}
@php $logoPath = public_path('images/logo-sentara.png'); @endphp @if(file_exists($logoPath)) Logo @else
DISPAR
@endif
DINAS PARIWISATA
KABUPATEN JEMBER
LAPORAN ANALISIS SENTIMEN
Wisata Kabupaten Jember
Laporan ini berisi hasil analisis sentimen terhadap ulasan wisata dari Google Maps menggunakan metode Naive Bayes.
Periode Analisis
{{ $periode->nama }}
{{-- RINGKASAN --}}
📊 RINGKASAN SENTIMEN
💬
Total Ulasan
{{ $totalUlasan }}
100% dari keseluruhan
😊
Sentimen Positif
{{ $totalPositif }}
{{ $persen['positif'] }}%
😟
Sentimen Negatif
{{ $totalNegatif }}
{{ $persen['negatif'] }}%
😐
Sentimen Netral
{{ $totalNetral }}
{{ $persen['netral'] }}%
{{-- DISTRIBUSI + EVALUASI --}}
🍩 DISTRIBUSI SENTIMEN
@php $t = max($totalUlasan, 1); $r = 38; $circ = 2 * 3.14159 * $r; $pP = $totalPositif / $t; $pN = $totalNegatif / $t; $pNt = $totalNetral / $t; @endphp
@if($pP > 0)@endif @if($pN > 0)@endif @if($pNt > 0)@endif
Positif{{ $persen['positif'] }}% ({{ $totalPositif }})
Negatif{{ $persen['negatif'] }}% ({{ $totalNegatif }})
Netral{{ $persen['netral'] }}% ({{ $totalNetral }})
🎯 EVALUASI MODEL
@if($evaluasi)
Precision
{{ number_format($evaluasi->precision,2) }}
Recall
{{ number_format($evaluasi->recall,2) }}
F1 Score
{{ number_format($evaluasi->f1_score,2) }}
Akurasi
{{ number_format($evaluasi->accuracy,2) }}
@else

Data evaluasi belum tersedia.

@endif
{{-- TABEL PER DESTINASI --}}
🔭 TOTAL DATA PER DESTINASI
@foreach($perWisata as $i => $w) @endforeach
NoDestinasi WisataTotal Ulasan
{{ $i+1 }}{{ $w->wisata }}{{ $w->total }}
Total{{ $totalUlasan }}
📉 SENTIMEN PER DESTINASI
@foreach($perWisata as $i => $w) @endforeach
NoDestinasi WisataPositifNegatifNetral
{{ $i+1 }}{{ $w->wisata }} {{ $w->positif }} {{ $w->negatif }} {{ $w->netral }}
Total {{ $totalPositif }} {{ $totalNegatif }} {{ $totalNetral }}
{{-- DETAIL + REKOMENDASI --}}
📋 DETAIL HASIL ANALISIS
@foreach($hasilAnalisis->take(8) as $i => $item) @endforeach
NoDestinasiUlasanSentimenProb.
{{ $i+1 }} {{ $item->wisata }} {{ \Illuminate\Support\Str::limit($item->ulasan_asli ?? '-', 75) }} {{ ucfirst($item->sentimen) }} {{ number_format($item->probabilitas,2) }}
@if($hasilAnalisis->count() > 8)

* Lihat semua data ulasan pada sistem ›

@endif
💡 REKOMENDASI LAYANAN
@php $iconColors = ['red','orange','green','blue','purple']; @endphp @forelse($rekomendasi as $i => $r) @php $c = $iconColors[$i % count($iconColors)]; @endphp
{{ $r['icon'] }}
{{ $r['nama'] }}
{{ $r['tip'] }}
@empty

Tidak ada keluhan signifikan. 🎉

@endforelse
{{-- FOOTER --}}

METODOLOGI

Analisis sentimen dilakukan menggunakan metode Naive Bayes Classifier pada data ulasan Google Maps yang telah melalui proses preprocessing (teks cleaning, case folding, tokenizing, filtering, stemming).

Dicetak pada: {{ now()->translatedFormat('d F Y H:i') }} WIB
Sistem Analisis Sentimen Wisata
Kabupaten Jember
{{-- HALAMAN 2: TABEL LENGKAP --}} @if($hasilAnalisis->count() > 8)
Detail Lengkap Hasil Analisis
Periode: {{ $periode->nama }} — Total {{ $hasilAnalisis->count() }} data
@foreach($hasilAnalisis as $i => $item) @endforeach
NoDestinasiUlasan AsliSentimenProb.
{{ $i+1 }} {{ $item->wisata }} {{ \Illuminate\Support\Str::limit($item->ulasan_asli ?? '-', 130) }} {{ ucfirst($item->sentimen) }} {{ number_format($item->probabilitas,2) }}

METODOLOGI

Analisis sentimen menggunakan Naive Bayes Classifier dengan preprocessing teks.

{{ now()->translatedFormat('d F Y H:i') }} WIB
SENTARA — Sistem Analisis Wisata Jember
@endif