From 397eb14d8553720be0f18fdbedb9b97cc3f50499 Mon Sep 17 00:00:00 2001
From: Amirah22 <94591077+Amirah22@users.noreply.github.com>
Date: Mon, 13 Mar 2023 13:02:27 +0800
Subject: [PATCH] laporan aging peratus sasaran by cawangan
---
resources/views/akaun/laporan_aging.blade.php | 99 +++++++++++++++----
1 file changed, 82 insertions(+), 17 deletions(-)
diff --git a/resources/views/akaun/laporan_aging.blade.php b/resources/views/akaun/laporan_aging.blade.php
index f5ec39d..ed564fb 100644
--- a/resources/views/akaun/laporan_aging.blade.php
+++ b/resources/views/akaun/laporan_aging.blade.php
@@ -277,33 +277,50 @@
LAPORAN AGING BULANAN |
- | TARIKH : |
+ Bulan : |
{{ $tebus_date }} |
+
+
+ | Tarikh Cetak: |
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $tarikh_cetak);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+ @endphp |
+
-
-
-
-
- | TEMPOH |
- BIL GADAIAN |
- BAKI PEMBIAYAAN (RM) |
+ TEMPOH |
+ BIL GADAIAN |
+ BAKI PEMBIAYAAN (RM) |
+ Peratus Sasaran(%) |
+
+ @php $jumpembiayaan = 0; @endphp
+ @foreach($aging[0]['count'] as $index=>$total)
+ @php
+ $jumpembiayaan += $aging[0]['sum'][$index];
+ @endphp
+ @endforeach
+
@php $jumlahcount = 0;$jumlahsum = 0; @endphp
@foreach($aging[0]['count'] as $index=>$ag)
@php
- $jumlahcount += $ag; $jumlahsum += $aging[0]['sum'][$index];
+ $jumlahcount += $ag;
+ $jumlahsum += $aging[0]['sum'][$index];
+ $total = ($aging[0]['sum'][$index]/$jumpembiayaan)*100;
@endphp
- | {{ ($index == 12) ? '12 >' : $index+1 }}
+ | {{ ($index == 12) ? '>12 ' : $index+1 }}
BULAN |
{{ number_format($ag) }} |
- {{ number_format($aging[0]['sum'][$index],2) }} |
+ {{ number_format($aging[0]['sum'][$index],2) }} |
+ {{ number_format($total,2) }} |
@endforeach
@@ -312,18 +329,66 @@
| |
|
-
-
-
-
-
- | JUMLAH |
+ JUMLAH |
{{ number_format($jumlahcount) }} |
{{ number_format($jumlahsum,2) }} |
+
|
+
+
+
+
+
+
+
+ @php $jumlahcount = 0;$jumlahsum = 0; @endphp
+ @foreach($aging[0]['count'] as $index=>$ag)
+ @if ($index < 6)
+ @php
+ $jumlahcount += $ag; $jumlahsum += $aging[0]['sum'][$index];
+ @endphp
+ @endif
+ @endforeach
+
+ | TEMPOH |
+ Peratus Sasaran (%) |
+
+
+
+ | 1 - 6 Bulan |
+ {{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }} |
+
+
+ @php $jumlahcount = 0;$jumlahsum = 0; @endphp
+ @foreach($aging[0]['sum'] as $index=>$ag)
+ @if ($index > 5 && $index < 12 )
+ @php
+ $jumlahsum += $aging[0]['sum'][$index];
+ @endphp
+ @endif
+ @endforeach
+
+ | > 6 Bulan |
+ {{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }} |
+
+
+ @php $jumlahcount = 0;$jumlahsum = 0; @endphp
+ @foreach($aging[0]['sum'] as $index=>$ag)
+ @if ($index > 11 && $index < 14)
+ @php
+
+ $jumlahsum += $aging[0]['sum'][$index];
+ @endphp
+ @endif
+ @endforeach
+
+ | > 12 Bulan |
+ {{ number_format(($jumlahsum/$jumpembiayaan)*100,2) }} |
+
+