diff --git a/app/Http/Controllers/BacaOnlineController.php b/app/Http/Controllers/BacaOnlineController.php index 3ce3e9e..1c79587 100644 --- a/app/Http/Controllers/BacaOnlineController.php +++ b/app/Http/Controllers/BacaOnlineController.php @@ -34,8 +34,9 @@ public function ringkasan(int $id): View return view('katalog.ringkasan', [ 'buku' => $book, - 'pageTitle' => 'Ringkasan Buku', + 'pageTitle' => 'Baca Buku Online', 'actionRoute' => 'baca.request_code', + 'previousRoute' => 'baca.index', 'actionButtonText' => 'Baca Sekarang', 'actionButtonIcon' => 'bi-book-half', ]); diff --git a/app/Http/Controllers/PeminjamanController.php b/app/Http/Controllers/PeminjamanController.php index c9f8621..620da36 100644 --- a/app/Http/Controllers/PeminjamanController.php +++ b/app/Http/Controllers/PeminjamanController.php @@ -32,8 +32,9 @@ public function ringkasan($id) return view('katalog.ringkasan', [ 'user' => $user, 'buku' => $buku, - 'pageTitle' => 'Ringkasan Buku', + 'pageTitle' => 'Peminjaman Buku Offline', 'actionRoute' => 'peminjaman.form', + 'previousRoute' => 'peminjaman.index', 'actionButtonText' => 'Lanjutkan ke Form Peminjaman', 'actionButtonIcon' => 'bi-file-earmark-text-fill', ]); diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 0d5082a..c190f66 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -1,9 +1,19 @@ @section('page-title', 'Dashboard Admin') -
-

Selamat Datang, {{ $user->nama_lengkap }}!

-

Berikut adalah ringkasan aktivitas perpustakaan hari ini.

+ {{-- Welcome card Section --}} +
+
+
+

{{ $greeting }}, {{ $user->nama_lengkap }}!

+

Berikut adalah ringkasan aktivitas perpustakaan hari ini.

+
+
+ +
+ Ilustrasi Dashboard +
{{-- Kartu Statistik --}} diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index fe43c27..2206ef6 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -20,6 +20,7 @@
+ {{-- Statistic Card --}}
@foreach ($stats as $stat)
@@ -38,6 +39,7 @@ @endforeach
+ {{-- Chart Statistic --}}
@@ -85,6 +87,7 @@
+ {{-- Section Pemberitahuan dan Pengumuman --}}
@@ -167,6 +170,7 @@ class="badge bg-{{ $item['type'] }}-soft text-{{ $item['type'] }} rounded-pill p
+ {{-- Section Buku Pinjam Offline --}}
@@ -186,7 +190,7 @@ class="badge bg-{{ $item['type'] }}-soft text-{{ $item['type'] }} rounded-pill p
@forelse($bukuPinjamOffline as $buku) -
+
@@ -206,6 +210,7 @@ class="badge bg-{{ $item['type'] }}-soft text-{{ $item['type'] }} rounded-pill p
+ {{-- Section Baca Buku Online --}}
@@ -251,6 +256,7 @@ class="badge bg-{{ $item['type'] }}-soft text-{{ $item['type'] }} rounded-pill p
+ {{-- Section Rekomendasi Pembelajaran (Role Guru) --}} @if (Auth::user()->role == 'guru')
@@ -283,7 +289,6 @@ class="d-flex gap-3 text-decoration-none text-dark mb-3">
@endif -
const riwayatOfflineData = @json($riwayatOffline); $(document).ready(function() { - $('#riwayatOfflineTable').DataTable({ - responsive: true, - searching: false, - pageLength: 10, - order: [[0, 'asc']], - columnDefs: [ - { responsivePriority: 1, targets: 2 }, - { responsivePriority: 2, targets: 6 }, - { responsivePriority: 3, targets: 0 }, - { targets: [1, 3, 4, 5], className: 'none' } - ] - }); -}); - + $('#riwayatOfflineTable').DataTable({ + responsive: true, + searching: false, + pageLength: 10, + order: [ + [0, 'asc'] + ], + columnDefs: [{ + responsivePriority: 1, + targets: 2 + }, + { + responsivePriority: 2, + targets: 6 + }, + { + responsivePriority: 3, + targets: 0 + }, + ] + }); + }); // Modal Detail @@ -120,7 +128,7 @@ class="bi bi-book-half me-2 text-primary">Detail Riwayat const keteranganHtml = buku.keterangan ? ` - Keterangan + Keterangan : ${buku.keterangan} @@ -139,17 +147,17 @@ class="bi bi-book-half me-2 text-primary">Detail Riwayat - + - + - +
ID PeminjamanID Peminjaman : ${transaksiItem.id_peminjaman}
Kategori BukuKategori Buku : ${buku.kategori}
Tahun TerbitTahun Terbit : ${buku.tahun}