From e450d4c699a06b38b8b2b6649ce1fc03f3ec3b66 Mon Sep 17 00:00:00 2001 From: novysan87 Date: Thu, 6 Aug 2026 23:20:46 +0700 Subject: [PATCH] =?UTF-8?q?ui(premium):=20detail=20siswa=20=E2=80=94=20her?= =?UTF-8?q?o=20profil=20gradien=20(avatar=20inisial,=20NISN/NIS,=20chip=20?= =?UTF-8?q?kelas-jurusan-TA,=20status,=20aksi),=204=20kartu=20KPI,=20kartu?= =?UTF-8?q?=20progres=20dokumen=20premium,=20timeline=20histori=20akademik?= =?UTF-8?q?,=20header=20kartu=20info=20gradien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/students/show.blade.php | 252 +++++++++++++++++------- 1 file changed, 183 insertions(+), 69 deletions(-) diff --git a/resources/views/students/show.blade.php b/resources/views/students/show.blade.php index c3b8dd0..345d55d 100644 --- a/resources/views/students/show.blade.php +++ b/resources/views/students/show.blade.php @@ -2,66 +2,175 @@ @php $isAdmin = auth()->user()?->isAdmin() ?? false; @endphp -
-
-
-

Kelengkapan Dokumen Wajib

-

Ringkasan upload dan verifikasi dokumen wajib siswa.

-
-
-
-
{{ $requiredDocumentSummary['percentage'] }}%
-
- {{ $requiredDocumentSummary['missing'] === 0 ? 'Upload lengkap' : 'Kurang ' . $requiredDocumentSummary['missing'] . ' dokumen' }} + {{-- ===== HERO PROFIL PREMIUM ===== --}} +
+
+
+
+
+
+
+
+ {{ strtoupper(substr($student->full_name, 0, 1)) }} +
+ + {{ $student->status === 'active' ? 'Aktif' : ucfirst($student->status) }} + +
+
+
+

{{ $student->full_name }}

+
+

+ + NISN {{ $student->nisn ?: '-' }} + + + NIS {{ $student->student_number ?: '-' }} + +

+
+ + {{ $student->classRoom?->name ?: '-' }} + + + {{ $student->department?->name ?: '-' }} + + + TA {{ $student->academicYear?->name ?: '-' }} +
+
+ +
+
+ + {{-- ===== KPI STRIP ===== --}} +
+
+
+
-
{{ $requiredDocumentSummary['verification_percentage'] }}%
-
- {{ $requiredDocumentSummary['unverified'] === 0 && $requiredDocumentSummary['missing'] === 0 ? 'Terverifikasi penuh' : $requiredDocumentSummary['unverified'] . ' belum valid' }} -
+

Dokumen Wajib

+

{{ $requiredDocumentSummary['uploaded'] }}/{{ $requiredDocumentSummary['total'] }}

+

{{ $requiredDocumentSummary['missing'] === 0 ? 'Lengkap semua' : 'Kurang ' . $requiredDocumentSummary['missing'] . ' dokumen' }}

+
+
+
+
+
+
+
+

Prestasi

+

{{ $student->achievements->count() }}

+

{{ $student->achievements->pluck('level')->filter()->unique()->count() }} tingkat berbeda

+
+
+ +
+
+
+
+
+
+
+

Orang Tua / Wali

+

{{ $student->parents->count() }}

+

{{ $student->parents->filter(fn ($parent) => filled($parent->phone_number))->count() }} punya nomor HP

+
+
+ +
+
+
+
+
+
+
+

Histori Akademik

+

{{ $student->academicHistories->count() }}

+

{{ $student->academicHistories->where('is_current', true)->count() === 1 ? 'Posisi saat ini tercatat' : 'Riwayat penempatan' }}

+
+
+ +
+
+
+
-
+ {{-- ===== PROGRES DOKUMEN WAJIB ===== --}} +
+
+
+
+ +
+
+

Kelengkapan Dokumen Wajib

+

Upload & verifikasi dokumen wajib siswa

+
+
+
+
+
{{ $requiredDocumentSummary['percentage'] }}%
+
{{ $requiredDocumentSummary['missing'] === 0 ? 'Upload lengkap' : 'Kurang ' . $requiredDocumentSummary['missing'] }}
+
+
+
{{ $requiredDocumentSummary['verification_percentage'] }}%
+
Terverifikasi
+
+
+
+
Upload Dokumen Wajib {{ $requiredDocumentSummary['uploaded'] }}/{{ $requiredDocumentSummary['total'] }}
-
-
+
+
-
Verifikasi Dokumen Wajib {{ $requiredDocumentSummary['verified'] }}/{{ $requiredDocumentSummary['total'] }}
-
-
+
+
+ @if ($requiredDocumentSummary['missing_items']->isNotEmpty() || $requiredDocumentSummary['unverified_items']->isNotEmpty()) +
+ @foreach ($requiredDocumentSummary['missing_items'] as $missingDocument) + Belum upload: {{ $missingDocument }} + @endforeach + @foreach ($requiredDocumentSummary['unverified_items'] as $unverifiedDocument) + Belum valid: {{ $unverifiedDocument }} + @endforeach +
+ @endif
- - @if ($requiredDocumentSummary['missing_items']->isNotEmpty() || $requiredDocumentSummary['unverified_items']->isNotEmpty()) -
- @foreach ($requiredDocumentSummary['missing_items'] as $missingDocument) - Belum upload: {{ $missingDocument }} - @endforeach - @foreach ($requiredDocumentSummary['unverified_items'] as $unverifiedDocument) - Belum valid: {{ $unverifiedDocument }} - @endforeach -
- @endif
-
+
@@ -84,7 +193,7 @@
-
+
@@ -102,7 +211,7 @@
-
+
@@ -132,37 +241,46 @@
@if ($student->academicHistories->isEmpty()) -
Belum ada histori akademik untuk siswa ini.
+
Belum ada histori akademik untuk siswa ini.
@else -
- - - - - - - - - - - - @foreach ($student->academicHistories as $history) - - - - - - - - @endforeach - -
TahunJurusanKelasStatusPeriode
{{ $history->academicYear?->name ?: '-' }}{{ $history->department?->name ?: '-' }}{{ $history->classRoom?->name ?: '-' }} - - {{ $history->is_current ? 'Aktif Sekarang' : ucfirst($history->status) }} - - - {{ $history->start_date?->format('d-m-Y') ?: '-' }} s/d {{ $history->end_date?->format('d-m-Y') ?: 'Sekarang' }} -
+
+
+ @foreach ($student->academicHistories as $history) +
+
+ @if ($history->is_current) + + @else + + @endif +
+
+
+ + {{ $history->academicYear?->name ?: '-' }} + + + {{ $history->is_current ? 'Aktif Sekarang' : ucfirst($history->status) }} + +
+
+
+ + {{ $history->classRoom?->name ?: '-' }} +
+
+ + {{ $history->department?->name ?: '-' }} +
+
+

+ + {{ $history->start_date?->format('d-m-Y') ?: '-' }} s/d {{ $history->end_date?->format('d-m-Y') ?: 'Sekarang' }} +

+
+
+ @endforeach
@endif @@ -609,8 +727,4 @@
-