@extends('admin.layouts.app') @section('title', 'Riwayat Rekomendasi Siswa') @section('content')
Seluruh hasil rekomendasi jurusan yang pernah dilakukan siswa
Total Rekomendasi
{{ $recommendations->total() }}
Siswa Unik
{{ $uniqueStudents }}
Jurusan Terpopuler
{{ $topMajor ?? '-' }}
| 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)
@else
-
@endif
{{ $i + 1 }}
{{ $hasil['jurusan'] ?? 'N/A' }}
@php $skorVal = $hasil['skor'] ?? 0; @endphp
{{ round(($skorVal > 1 ? $skorVal : $skorVal * 100), 1) }}%
@endforeach
|
{{ $rec->created_at->format('d M Y H:i') }} | 👁 Detail Siswa |
| Belum ada data rekomendasi | ||||||