@extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

👥 Total Siswa

{{ $totalSiswa }}

🎯 Total Rekomendasi

{{ $totalRekomendasi }}

💬 Chat History

{{ $totalChatHistory }}

🎓 Jurusan Tersedia

{{ $totalJurusan }}

📊 Siswa per Kelompok

@foreach($kelompokStats as $stat)
{{ $stat->kelompok_asal ?? 'Tidak Ada' }}
{{ $stat->count }}
@endforeach

🎯 Top Recommended Majors

@if($topMajors->isNotEmpty())
@foreach($topMajors as $major)
{{ $major->major_name }} {{ $major->count }}
@endforeach
@else

Belum ada data rekomendasi

@endif

👥 Siswa Terbaru

@if($recentStudents->isNotEmpty())
@foreach($recentStudents as $student) @endforeach
Nama NIS Kelompok Aksi
{{ $student->name }} {{ $student->nis ?? '-' }} {{ $student->kelompok_asal ?? '-' }} 👁 Lihat
@else

Belum ada siswa terdaftar

@endif

🎯 Rekomendasi Terbaru

@if($recentRecommendations->isNotEmpty())
@foreach($recentRecommendations as $rec) @php $topJurusan = $rec->hasil_rekomendasi[0]['jurusan'] ?? '-'; $topSkor = round(($rec->hasil_rekomendasi[0]['skor'] ?? 0) * 100, 1); @endphp @endforeach
Siswa Top Rekomendasi Skor Tanggal
{{ $rec->user->name }} {{ $topJurusan }} {{ $topSkor }}% {{ $rec->created_at->format('d M Y') }}
@else

Belum ada rekomendasi

@endif
@endsection