From 374433c911db37a1d3559d0a4593313c4c5d5df3 Mon Sep 17 00:00:00 2001 From: Nur Izzati Date: Tue, 1 Jul 2025 16:46:56 +0800 Subject: [PATCH] update laporan tebus keseluruhan --- .../views/reports/penebusan/index.blade.php | 120 ++++++++++++++++-- 1 file changed, 112 insertions(+), 8 deletions(-) diff --git a/resources/views/reports/penebusan/index.blade.php b/resources/views/reports/penebusan/index.blade.php index 6778f56..bf3af46 100644 --- a/resources/views/reports/penebusan/index.blade.php +++ b/resources/views/reports/penebusan/index.blade.php @@ -106,8 +106,30 @@ + @php + $totalbiltebus = 0; + $totalberat = 0; + $totalnm = 0; + $totalpinjaman = 0; + $totalbakipinjaman = 0; + $totalkeuntunganasal = 0; + $totalkeuntunganrebet = 0; + $totalbayaran = 0; + + @endphp @forelse ($penebusan as $tebus) + @php + $totalbiltebus += $tebus['bilangan_tebus']; + $totalberat += $tebus['berat']; + $totalnm += $tebus['nilai_marhun']; + $totalpinjaman += $tebus['nilai_pinjaman']; + $totalbakipinjaman += $tebus['baki_pinjaman']; + $totalkeuntunganasal += $tebus['keuntungan_asal']; + $totalkeuntunganrebet += $tebus['keuntungan_rebet']; + $totalbayaran += $tebus['bayaran_penebusan']; + + @endphp
@@ -146,6 +168,14 @@
+ +
+
+

+ {{ number_format($tebus['nilai_marhun'], 2) }}

+
+
+
@@ -162,14 +192,6 @@
- -
-
-

- {{ number_format($tebus['nilai_marhun'], 2) }}

-
-
-
@@ -217,6 +239,88 @@ @endforelse + + +
+
+

Jumlah Keseluruhan

+
+
+ + +
+
+

+ {{ number_format($totalbiltebus,0) }}

+
+
+ + +
+
+

+ {{ number_format($totalberat,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalnm,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalpinjaman,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalbakipinjaman,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalkeuntunganasal,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalkeuntunganrebet,2) }}

+
+
+ + +
+
+

+ {{ number_format($totalbayaran,2) }}

+
+
+ + +
+
+

+

+
+
+ + +