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 @@
🏫
Kelas Diampu
{{ $totalKelas }}
+ Lihat Data →
📚
Mata Pelajaran
{{ $totalMapel }}
+ Lihat Data →
👨‍🎓
Siswa Diajar
{{ $totalSiswa }}
+ Lihat Data →
diff --git a/resources/views/guru/guru/index.blade.php b/resources/views/guru/guru/index.blade.php deleted file mode 100644 index 444d416..0000000 --- a/resources/views/guru/guru/index.blade.php +++ /dev/null @@ -1,125 +0,0 @@ -@extends('guru.layouts.app') - -@section('title', 'Daftar Guru') - -@section('content') - - - -

DAFTAR GURU

- -
- -
- -
- 📖 Mode Hanya Lihat (Read Only) -
- -
- -
- -
- -
- Tampilkan - - - - data - - -
- - - - - - - - - - - - @forelse($gurus as $index => $guru) - - - - - - - @empty - - - - @endforelse - -
NoNIPNama Guru
{{ $gurus->firstItem() + $index }}{{ $guru->nip }}{{ $guru->nama }}
Belum ada data guru
- -
- {{ $gurus->links() }} -
- -
- -@endsection - diff --git a/resources/views/guru/layouts/app.blade.php b/resources/views/guru/layouts/app.blade.php index 3d8ee42..e45da3b 100644 --- a/resources/views/guru/layouts/app.blade.php +++ b/resources/views/guru/layouts/app.blade.php @@ -4,7 +4,7 @@ - @yield('title', 'Panel Guru') + @yield('title', 'Dashboard Guru ')