@extends('admin.layouts.app') @section('title', 'Detail Siswa - ' . $student->name) @section('content')

👤 Detail Siswa

{{ $student->name }}

← Kembali

Nama

{{ $student->name }}

Email

{{ $student->email }}

NIS

{{ $student->nis ?? '-' }}

Kelompok Asal

@if($student->kelompok_asal)

{{ $student->kelompok_asal }}

@else

-

@endif

Foto Profil

@if($student->foto) {{ $student->name }} @else

-

@endif

Terdaftar

{{ $student->created_at->format('d M Y H:i') }}

🎯 Riwayat Rekomendasi ({{ count($recommendations) }})

@if($recommendations->isNotEmpty())
@foreach($recommendations as $rec)

{{ $rec->created_at->format('d M Y H:i') }}

Rekomendasi #{{ $loop->index + 1 }}
@if($rec->hasil_rekomendasi && is_array($rec->hasil_rekomendasi))

Top 3 Rekomendasi:

@foreach(array_slice($rec->hasil_rekomendasi, 0, 3) as $idx => $hasil)
{{ $idx + 1 }}. {{ $hasil['jurusan'] ?? 'N/A' }} @php $skorVal = $hasil['skor'] ?? 0; @endphp {{ round(($skorVal > 1 ? $skorVal : $skorVal * 100), 1) }}%
@endforeach
@endif

Minat: {{ $rec->minat ?? '-' }} | Cita-cita: {{ $rec->cita_cita ?? '-' }}

@endforeach
@else

Siswa belum melakukan rekomendasi

@endif

💬 Chat History ({{ count($chatHistories) }})

@if(count($chatHistories) > 0) Lihat Semua → @endif
@if($chatHistories->isNotEmpty())
@foreach($chatHistories as $chat)

{{ $chat->created_at->format('d M Y H:i') }}

👤 Pertanyaan Siswa:

{{ \Illuminate\Support\Str::limit($chat->prompt, 150) }}

🤖 Jawaban AI:

{{ \Illuminate\Support\Str::limit($chat->response, 150) }}

@endforeach
@else

Siswa belum melakukan chat dengan AI

@endif
@endsection