From d83689a95b41e9b95076092ea193e3976875b5f9 Mon Sep 17 00:00:00 2001 From: Novy San87 Date: Thu, 6 Aug 2026 21:47:44 +0700 Subject: [PATCH] =?UTF-8?q?ui(premium):=20Data=20Wali=20Murid=20=E2=80=94?= =?UTF-8?q?=20header=20gradien=20+=20badge=20SiMURID,=204=20kartu=20statis?= =?UTF-8?q?tik,=20search=20premium,=20tabel=20dengan=20avatar=20gradien=20?= =?UTF-8?q?&=20badge=20status=20pulsing,=20tombol=20reset=20gradien=20ambe?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Admin/WaliMuridController.php | 6 +- resources/views/parents/index.blade.php | 201 +++++++++++++----- 2 files changed, 153 insertions(+), 54 deletions(-) diff --git a/app/Http/Controllers/Admin/WaliMuridController.php b/app/Http/Controllers/Admin/WaliMuridController.php index 59305a0..6926782 100644 --- a/app/Http/Controllers/Admin/WaliMuridController.php +++ b/app/Http/Controllers/Admin/WaliMuridController.php @@ -33,7 +33,11 @@ class WaliMuridController extends Controller $totalAktif = User::where('role', 'parent') ->whereHas('parentStudents', fn ($q) => $q->where('status', 'active')) ->count(); + $pending = \App\Models\ParentStudent::where('status', 'pending')->count(); + $baruMingguIni = User::where('role', 'parent') + ->where('created_at', '>=', now()->subDays(7)) + ->count(); - return view('parents.index', compact('users', 'total', 'totalAktif')); + return view('parents.index', compact('users', 'total', 'totalAktif', 'pending', 'baruMingguIni')); } } diff --git a/resources/views/parents/index.blade.php b/resources/views/parents/index.blade.php index e90333f..c3f4ecc 100644 --- a/resources/views/parents/index.blade.php +++ b/resources/views/parents/index.blade.php @@ -5,27 +5,92 @@ @section('content')
- {{-- Header --}} -
+ {{-- Header premium --}} +
-
-
+
+
+
- -
- - {{ $total }} akun - - - {{ $totalAktif }} aktif - + + Verifikasi Wali + @if($pending > 0) + {{ $pending }} + @endif + +
+
+ + {{-- Kartu statistik --}} +
+
+
+
+
+

Total Akun

+

{{ $total }}

+

Seluruh wali terdaftar

+
+
+ +
+
+
+ +
+
+
+
+

Aktif

+

{{ $totalAktif }}

+

Terkait & terverifikasi

+
+
+ +
+
+
+ +
+
+
+
+

Menunggu

+

{{ $pending }}

+

Perlu diverifikasi

+
+
+ +
+
+
+ +
+
+
+
+

Baru 7 Hari

+

{{ $baruMingguIni }}

+

Registrasi terakhir

+
+
+ +
@@ -42,76 +107,106 @@
@endif - {{-- Daftar wali --}} -
-
-

Daftar Akun Wali Murid

-
+ {{-- Tabel wali --}} +
+
+
+

+ + Daftar Akun Wali Murid +

+

Kelola akun & reset password bila wali lupa

+
+ + - + class="text-sm rounded-2xl border-slate-200 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 pl-10 pr-4 py-2.5 w-full sm:w-72 bg-slate-50/50 focus:bg-white transition-all shadow-sm">
@if($users->isEmpty()) -
- -

Belum ada akun wali murid terdaftar.

+
+
+ +
+

Belum ada akun wali murid

+

Wali yang mendaftar lewat aplikasi akan tampil di sini.

@else
- - - - - - - + + + + + + + @foreach($users as $user) - - + - - + - - + @@ -120,7 +215,7 @@
WaliNomor HPPutra/Putri TertautTerdaftarAksi
WaliNomor HPPutra/Putri TertautTerdaftarAksi
+
-
- {{ strtoupper(substr($user->name, 0, 1)) }} +
+
+ {{ strtoupper(substr($user->name, 0, 1)) }} +

{{ $user->name }}

-

{{ $user->username }}

+

{{ $user->username }}

{{ $user->phone ?? '-' }} + + + + {{ $user->phone ?? '-' }} + + @if($user->parentStudents->isEmpty()) - Belum ada tautan + + Belum ada tautan + @else -
+
@foreach($user->parentStudents as $link) - - - {{ $link->student?->full_name ?? 'Siswa' }} + + + + + {{ $link->student?->full_name ?? 'Siswa' }} @if($link->status === 'active') - Aktif + + Aktif + @elseif($link->status === 'pending') - Menunggu + + Menunggu + @else - Ditolak + + Ditolak + @endif @endforeach
@endif
{{ $user->created_at?->format('d M Y') }} + + + + {{ $user->created_at?->format('d M Y') }} + +
-
+
{{ $users->links() }}
@endif