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

👥 Total Siswa

{{ $totalSiswa }}

🎯 Total Rekomendasi

{{ $totalRekomendasi }}

💬 Chat History

{{ $totalChatHistory }}

🎓 Jurusan Tersedia

{{ $totalJurusan }}

📊 Distribusi Rekomendasi per Jurusan

📈 Distribusi Siswa per Kelompok

📊 Rekomendasi per Kelompok

🎯 Top Recommended Majors

👥 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'] ?? '-'; $skorRaw = $rec->hasil_rekomendasi[0]['skor'] ?? 0; $topSkor = round(($skorRaw > 1 ? $skorRaw : $skorRaw * 100), 1); @endphp @endforeach
Siswa Top Rekomendasi Skor Tanggal
{{ $rec->user->name ?? 'Pengguna Dihapus' }} {{ $topJurusan }} {{ $topSkor }}% {{ $rec->created_at->format('d M Y') }}
@else

Belum ada rekomendasi

@endif
@endsection @section('scripts') @endsection