From c01df37af01d50d12f22751ddfaf089e855726aa Mon Sep 17 00:00:00 2001 From: ImMocha Date: Thu, 5 Jun 2025 19:38:48 +0800 Subject: [PATCH] revisi:5 --- app/Http/Controllers/ServiceController.php | 3 --- resources/views/complaints/index.blade.php | 6 +++--- resources/views/satisfactions/index.blade.php | 6 +++--- resources/views/services/index.blade.php | 4 ++-- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/Http/Controllers/ServiceController.php b/app/Http/Controllers/ServiceController.php index 4277749..4b74dd0 100644 --- a/app/Http/Controllers/ServiceController.php +++ b/app/Http/Controllers/ServiceController.php @@ -80,9 +80,6 @@ public function index(Request $request) $services = $query->latest()->get(); } - // Simpan parameter filter dalam url pagination - $services->appends(request()->query()); - return view('services.index', compact('services')); } diff --git a/resources/views/complaints/index.blade.php b/resources/views/complaints/index.blade.php index 051c6f1..fad8b2a 100644 --- a/resources/views/complaints/index.blade.php +++ b/resources/views/complaints/index.blade.php @@ -129,7 +129,7 @@ function cetakPDF() { @foreach($complaints as $index => $complaint) - {{ $index + $complaints->firstItem() }} + {{ $loop->iteration }} {{ $complaint->jenis_layanan }} {{ \Carbon\Carbon::parse($complaint->tanggal_keluhan)->format('d-m-Y') }} {{ $complaint->created_at->format('d-m-Y H:i') }} @@ -157,9 +157,9 @@ function cetakPDF() { - --}} @if($complaints->count() == 0)
diff --git a/resources/views/satisfactions/index.blade.php b/resources/views/satisfactions/index.blade.php index 9b9b93b..c1717fd 100644 --- a/resources/views/satisfactions/index.blade.php +++ b/resources/views/satisfactions/index.blade.php @@ -157,7 +157,7 @@ function cetakPDF() { @foreach($satisfactions as $index => $satisfaction) - {{ $index + $satisfactions->firstItem() }} + {{ $loop->iteration }} {{ $satisfaction->created_at->format('d-m-Y H:i') }} @@ -188,9 +188,9 @@ function cetakPDF() {
- --}} @if($satisfactions->count() == 0)
diff --git a/resources/views/services/index.blade.php b/resources/views/services/index.blade.php index 873738b..8745e50 100644 --- a/resources/views/services/index.blade.php +++ b/resources/views/services/index.blade.php @@ -286,9 +286,9 @@ function cetakPDF() {
-
+ {{--
{{ $services->links() }} -
+
--}}