ui(premium): Verifikasi Wali — header gradien + badge SiMURID, 4 kartu statistik, kartu antrean premium (avatar gradien + badge relasi + chip NISN + HP), tombol setujui/tolak gradien, konfirmasi Swal + alasan penolakan, tabel riwayat premium
This commit is contained in:
@@ -20,12 +20,18 @@ class ParentVerificationController extends Controller
|
||||
|
||||
$recent = ParentStudent::query()
|
||||
->where('status', '!=', 'pending')
|
||||
->with(['user:id,name,username', 'student:id,nisn,full_name,class_name'])
|
||||
->with(['user:id,name,username,phone', 'student:id,nisn,full_name,class_name'])
|
||||
->orderByDesc('updated_at')
|
||||
->limit(20)
|
||||
->get();
|
||||
|
||||
return view('parents.verification', compact('pending', 'recent'));
|
||||
$totalWali = \App\Models\User::where('role', 'parent')->count();
|
||||
$approvedToday = ParentStudent::where('status', 'active')
|
||||
->whereDate('verified_at', today())
|
||||
->count();
|
||||
$rejectedTotal = ParentStudent::where('status', 'rejected')->count();
|
||||
|
||||
return view('parents.verification', compact('pending', 'recent', 'totalWali', 'approvedToday', 'rejectedTotal'));
|
||||
}
|
||||
|
||||
public function approve(Request $request, int $linkId): RedirectResponse
|
||||
|
||||
Reference in New Issue
Block a user