From 7d73285b605562e4a558067abf13c1c5b0828347 Mon Sep 17 00:00:00 2001 From: zhadaarsita Date: Tue, 4 Nov 2025 00:10:20 +0700 Subject: [PATCH] refactor: back button page --- resources/scss/_custom.scss | 4 - resources/views/admin/buku/create.blade.php | 132 +++++++------ resources/views/admin/buku/edit.blade.php | 135 +++++++------- .../views/admin/pengguna/create.blade.php | 93 ++++++---- resources/views/admin/pengguna/edit.blade.php | 97 ++++++---- .../views/admin/pengumuman/create.blade.php | 75 ++++---- .../views/admin/pengumuman/edit.blade.php | 80 ++++---- .../views/admin/rekomendasi/create.blade.php | 44 +++-- .../views/admin/rekomendasi/edit.blade.php | 44 +++-- resources/views/profile/index.blade.php | 175 ++++++++++-------- 10 files changed, 501 insertions(+), 378 deletions(-) diff --git a/resources/scss/_custom.scss b/resources/scss/_custom.scss index 0ac9c3f..511c785 100644 --- a/resources/scss/_custom.scss +++ b/resources/scss/_custom.scss @@ -212,18 +212,14 @@ nav { border-bottom-right-radius: 5px; } -// Styling navbar // Styling navbar .navbar { border-bottom: none; .navbar-brand { - // 1. Ukuran default untuk DESKTOP font-size: 20px; color: var(--bs-dark-text-emphasis) !important; - // 2. Aturan khusus yang akan menimpa ukuran di atas JIKA layar kecil (MOBILE) - // Saya gunakan 991.98px agar konsisten dengan breakpoint sidebar-mu @media (max-width: 991.98px) { font-size: 18px; } diff --git a/resources/views/admin/buku/create.blade.php b/resources/views/admin/buku/create.blade.php index 6072106..ff63fb7 100644 --- a/resources/views/admin/buku/create.blade.php +++ b/resources/views/admin/buku/create.blade.php @@ -1,66 +1,76 @@ @section('page-title', $pageTitle) -
-
- - - -
Formulir Tambah Buku Baru
-
-
-
- {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} -
-
-
- - -
-
- - -
-
-
- - -
-
- - -
-
-
- -
- - -
-
- - -
-
-
-
-
- - -
-
- - -
-
-
-
-
- -
-
-
+
+ + + +

Formulir Tambah Buku

+ +
+
+
+
+
+
+ {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ +
+ + +
+
+ + +
+
+
+
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+
+
+
+
+
z diff --git a/resources/views/admin/buku/edit.blade.php b/resources/views/admin/buku/edit.blade.php index b670872..547dbb7 100644 --- a/resources/views/admin/buku/edit.blade.php +++ b/resources/views/admin/buku/edit.blade.php @@ -1,71 +1,82 @@ @section('page-title', $pageTitle) -
-
- - - -
Formulir Edit Buku
-
-
-
- {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} -
-
-
- - -
-
- - -
-
-
- - +
+ + + +

Formulir Edit Buku

+
+ +
+
+
+
+
+ + {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + @php + $tipe_akses = is_array($buku['tipe_akses']) + ? $buku['tipe_akses'] + : [$buku['tipe_akses']]; + @endphp +
+ + +
+
+ + +
+
+ +
+
+
+ + + Cover saat ini +
+
-
- - +
+
+
-
-
- - @php - $tipe_akses = is_array($buku['tipe_akses']) ? $buku['tipe_akses'] : [$buku['tipe_akses']]; - @endphp -
- - -
-
- - -
-
-
-
-
- - - Cover saat ini -
-
- - - @if(isset($buku['file_pdf'])) - File saat ini: {{ $buku['file_pdf'] }} - @endif -
+
-
-
- -
- +
- \ No newline at end of file + diff --git a/resources/views/admin/pengguna/create.blade.php b/resources/views/admin/pengguna/create.blade.php index ff1d8ce..e284779 100644 --- a/resources/views/admin/pengguna/create.blade.php +++ b/resources/views/admin/pengguna/create.blade.php @@ -1,47 +1,58 @@ @section('page-title', $pageTitle) -
-
- -
Formulir Tambah Pengguna
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - +
+ + + +

Formulir Tambah Pengguna

+
+ +
+
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+
-
-
- -
- +
- \ No newline at end of file + diff --git a/resources/views/admin/pengguna/edit.blade.php b/resources/views/admin/pengguna/edit.blade.php index d4cd7ab..40bebef 100644 --- a/resources/views/admin/pengguna/edit.blade.php +++ b/resources/views/admin/pengguna/edit.blade.php @@ -1,47 +1,62 @@ @section('page-title', $pageTitle) -
-
- -
Formulir Edit Pengguna
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - +
+ + + +

Formulir Edit Pengguna

+
+ +
+
+
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+
-
-
- -
- +
- \ No newline at end of file + diff --git a/resources/views/admin/pengumuman/create.blade.php b/resources/views/admin/pengumuman/create.blade.php index 045a1a8..7021a99 100644 --- a/resources/views/admin/pengumuman/create.blade.php +++ b/resources/views/admin/pengumuman/create.blade.php @@ -1,40 +1,47 @@ @section('page-title', $pageTitle) +
+ + + +

Formulir Tambah Pengumuman

+
-
-
- - - -
Formulir Pengumuman Baru
-
-
-
- {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} -
- - +
+
+
+
+
+ + {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} +
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ +
-
- - -
-
- - -
-
-
- -
- +
- \ No newline at end of file + diff --git a/resources/views/admin/pengumuman/edit.blade.php b/resources/views/admin/pengumuman/edit.blade.php index 2d7fb87..48c8e8c 100644 --- a/resources/views/admin/pengumuman/edit.blade.php +++ b/resources/views/admin/pengumuman/edit.blade.php @@ -1,40 +1,52 @@ @section('page-title', $pageTitle) +
+ + + +

Formulir Edit Pengumuman

+
-
-
- - - -
Formulir Edit Pengumuman
-
-
-
- {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} -
- - +
+
+
+
+
+ + {{-- Form ini tidak akan berfungsi karena tidak ada backend --}} +
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ +
-
- - -
-
- - -
-
-
- -
- +
- \ No newline at end of file + diff --git a/resources/views/admin/rekomendasi/create.blade.php b/resources/views/admin/rekomendasi/create.blade.php index 14ad250..8c491f7 100644 --- a/resources/views/admin/rekomendasi/create.blade.php +++ b/resources/views/admin/rekomendasi/create.blade.php @@ -1,18 +1,34 @@ @section('page-title', $pageTitle) -
-
- -
Formulir Rekomendasi Baru
-
-
-
-
-
-
-
-
-
+
+ + + +

Formulir Tambah Rekomendasi

+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
@push('scripts') @@ -21,4 +37,4 @@ CKEDITOR.replace('editor'); @endpush - \ No newline at end of file + diff --git a/resources/views/admin/rekomendasi/edit.blade.php b/resources/views/admin/rekomendasi/edit.blade.php index 2552305..6495778 100644 --- a/resources/views/admin/rekomendasi/edit.blade.php +++ b/resources/views/admin/rekomendasi/edit.blade.php @@ -1,18 +1,34 @@ @section('page-title', $pageTitle) -
-
- -
Formulir Edit Rekomendasi
-
-
-
-
-
-
-
-
-
+
+ + + +

Formulir Edit Rekomendasi

+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
@push('scripts') @@ -21,4 +37,4 @@ CKEDITOR.replace('editor'); @endpush - \ No newline at end of file + diff --git a/resources/views/profile/index.blade.php b/resources/views/profile/index.blade.php index ff2fa36..0db9427 100644 --- a/resources/views/profile/index.blade.php +++ b/resources/views/profile/index.blade.php @@ -1,40 +1,41 @@ @section('page-title', 'Profil') -
+
{{-- =================================================================== --}} {{-- TAMPILAN PROFIL UNTUK PENJAGA PERPUSTAKAAN --}} {{-- =================================================================== --}} @if (Auth::user()->role == 'penjaga perpus') -

Profil Petugas

-
+
{{-- Kolom Kiri: Info & Statistik Global --}} -
+
{{-- Info Petugas --}}
-
- Foto Profil +
+ Foto Profil

{{ $user->name }}

- {{ Str::title($user->role) }} + {{ Str::title($user->role) }}
{{-- Statistik Perpustakaan --}} -
-
-
Statistik Perpustakaan
-
+
+
+
Statistik Perpustakaan
+
@foreach ($statistik as $stat) -
- -
{{ $stat['value'] }}
- {{ $stat['label'] }} +
+ +

{{ $stat['value'] }}

+

{{ $stat['label'] }}

@endforeach
@@ -43,20 +44,26 @@ class="rounded-circle profile-avatar-lg mb-3 mb-sm-0">
{{-- Kolom Kanan: Pintasan & Aktivitas --}} -
+
{{-- Pintasan Manajemen --}} -
-
-
Pintasan Manajemen
-
- - Kelola Buku +
+ @@ -66,9 +73,11 @@ class="rounded-circle profile-avatar-lg mb-3 mb-sm-0"> @@ -79,55 +88,65 @@ class="rounded-circle profile-avatar-lg mb-3 mb-sm-0"> {{-- TAMPILAN PROFIL UNTUK GURU --}} {{-- =================================================================== --}} @elseif (Auth::user()->role == 'guru') - -

Profil Guru

-
+
+

Profil Guru

+
+
{{-- Kolom Kiri: Info & Ringkasan Laporan --}} -
+
{{-- Info Guru --}}
-
- Foto Profil +
+ Foto Profil

{{ $user->name }}

- {{ Str::title($user->role) }} + {{ Str::title($user->role) }}
- + Edit Profil
{{-- Ringkasan Laporan Minat Baca --}} -
-
-
+
+
+
Ringkasan Laporan Minat Baca
- + Lihat Laporan Lengkap
-
+
-
Buku Terpopuler
+
Buku Terpopuler
    - @foreach($laporan['buku_terpopuler'] as $buku) -
  • + @foreach ($laporan['buku_terpopuler'] as $buku) +
  • {{ $buku['judul'] }} - {{ $buku['total_pembaca'] }} + {{ $buku['total_pembaca'] }}
  • @endforeach
-
Kategori Terpopuler
+
Kategori Terpopuler +
    - @foreach($laporan['kategori_populer'] as $kategori) -
  • + @foreach ($laporan['kategori_populer'] as $kategori) +
  • {{ $kategori['nama'] }} - {{ $kategori['total_pembaca'] }} + {{ $kategori['total_pembaca'] }}
  • @endforeach
@@ -139,7 +158,10 @@ class="rounded-circle profile-avatar-lg mb-3 mb-md-0"> {{-- Kolom Kanan: Aktivitas Personal Guru --}}
- @include('profile.partials.personal-activities', ['bukuOffline' => $bukuOffline, 'bukuOnline' => $bukuOnline]) + @include('profile.partials.personal-activities', [ + 'bukuOffline' => $bukuOffline, + 'bukuOnline' => $bukuOnline, + ])
@@ -147,22 +169,25 @@ class="rounded-circle profile-avatar-lg mb-3 mb-md-0"> {{-- TAMPILAN PROFIL UNTUK SISWA (DEFAULT) --}} {{-- =================================================================== --}} @else -

Profil Saya

-
+
+

Profil Saya

+
+
{{-- Kolom Kiri: Info & Statistik Siswa --}} -
+
{{-- Info Siswa --}}
- Foto Profil + Foto Profil

{{ $user->name }}

- {{ Str::title($user->role) }} + {{ Str::title($user->role) }}
- + Edit Profil
@@ -190,15 +215,16 @@ class="rounded-circle profile-avatar-lg mb-3 mb-md-0">
{{-- Statistik Personal Siswa --}} -
-
-
Statistik Saya
-
+
+
+
Statistik Saya
+
@foreach ($statistik as $stat) -
- -
{{ $stat['value'] }}
- {{ $stat['label'] }} +
+ +

{{ $stat['value'] }}

+

{{ $stat['label'] }}

@endforeach
@@ -208,10 +234,13 @@ class="rounded-circle profile-avatar-lg mb-3 mb-md-0"> {{-- Kolom Kanan: Aktivitas Personal Siswa --}}
- @include('profile.partials.personal-activities', ['bukuOffline' => $bukuOffline, 'bukuOnline' => $bukuOnline]) + @include('profile.partials.personal-activities', [ + 'bukuOffline' => $bukuOffline, + 'bukuOnline' => $bukuOnline, + ])
@endif
- \ No newline at end of file +