@extends('admin.layouts.app') @section('title', 'Riwayat Rekomendasi Siswa') @section('content')

🎯 Riwayat Rekomendasi Siswa

Seluruh hasil rekomendasi jurusan yang pernah dilakukan siswa

Total Rekomendasi

{{ $recommendations->total() }}

Siswa Unik

{{ $uniqueStudents }}

Jurusan Terpopuler

{{ $topMajor ?? '-' }}

@if(request('search')) Reset @endif
@forelse($recommendations as $idx => $rec) @empty @endforelse
No Nama Siswa Kelompok Minat Top 3 Rekomendasi Tanggal Aksi
{{ $recommendations->firstItem() + $idx }} {{ $rec->user->name ?? 'Deleted User' }} @if($rec->user && $rec->user->kelompok_asal) {{ $rec->user->kelompok_asal }} @else - @endif {{ \Illuminate\Support\Str::limit($rec->minat, 30) }} @if($rec->hasil_rekomendasi && is_array($rec->hasil_rekomendasi))
@foreach(array_slice($rec->hasil_rekomendasi, 0, 3) as $i => $hasil)
{{ $i + 1 }} {{ $hasil['jurusan'] ?? 'N/A' }} @php $skorVal = $hasil['skor'] ?? 0; @endphp {{ round(($skorVal > 1 ? $skorVal : $skorVal * 100), 1) }}%
@endforeach
@else - @endif
{{ $rec->created_at->format('d M Y H:i') }} 👁 Detail Siswa
Belum ada data rekomendasi
{{ $recommendations->withQueryString()->links() }}
@endsection