diff --git a/app/Http/Controllers/Guru/GuruController.php b/app/Http/Controllers/Guru/GuruController.php deleted file mode 100644 index 13c2d11..0000000 --- a/app/Http/Controllers/Guru/GuruController.php +++ /dev/null @@ -1,29 +0,0 @@ -has('search')) { - $search = $request->search; - $query->where('nama', 'like', "%$search%") - ->orWhere('nip', 'like', "%$search%"); - } - - // SHOW PER PAGE - $perPage = $request->get('perPage', 10); - - $gurus = $query->paginate($perPage)->appends($request->all()); - - return view('guru.guru.index', compact('gurus')); - } -} diff --git a/resources/views/guru/dashboard.blade.php b/resources/views/guru/dashboard.blade.php index 18728aa..e6c0cfd 100644 --- a/resources/views/guru/dashboard.blade.php +++ b/resources/views/guru/dashboard.blade.php @@ -34,6 +34,21 @@ .stat-card:nth-child(2) .stat-icon { background: rgba(34,197,94,0.15); } .stat-card:nth-child(3) .stat-icon { background: rgba(249,115,22,0.15); } +.stat-link { + display: inline-block; + margin-top: 12px; + font-size: 11px; + font-weight: 700; + padding: 4px 12px; + border-radius: 99px; + text-decoration: none; + transition: opacity 0.2s; +} +.stat-link:hover { opacity: 0.75; } +.stat-card:nth-child(1) .stat-link { background: rgba(43,142,243,0.15); color: #1d5fb8; } +.stat-card:nth-child(2) .stat-link { background: rgba(34,197,94,0.15); color: #15803d; } +.stat-card:nth-child(3) .stat-link { background: rgba(249,115,22,0.15); color: #c2651a; } + /* BOTTOM GRID */ .dash-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; animation: fadeUp 0.4s ease 0.2s both; } @@ -91,16 +106,19 @@
| No | -NIP | -Nama Guru | -
|---|---|---|
| {{ $gurus->firstItem() + $index }} | -{{ $guru->nip }} | -{{ $guru->nama }} | -
| Belum ada data guru | -||