Stok Audit
diff --git a/resources/views/print/laporan_ansuran.blade.php b/resources/views/print/laporan_ansuran.blade.php
index 3fe8880..a0f6f69 100644
--- a/resources/views/print/laporan_ansuran.blade.php
+++ b/resources/views/print/laporan_ansuran.blade.php
@@ -203,99 +203,154 @@
No Rujukan |
Nama |
No K/P |
+
Tarikh Bayaran |
Tempoh |
Baki Pembiayaan (RM) |
Bayaran Pemb. (RM) |
+
Ujrah(RM) |
+
Keuntungan 1% (RM) |
Keuntungan (RM) |
Bayaran (RM) |
- @php $counter = 1;$totalduitmasuk = 0;$totalkeuntungan = 0; $totalpendahuluan = 0;@endphp
- @foreach($tebus as $index=>$item)
- @php $totalduitmasuk += $item['duit_masuk'];$totalkeuntungan += $item['bayaran_keuntungan'];$totalpendahuluan += $item['bayaran_pembiayaan']; @endphp
- @if($index > 0)
- @if($item['teller'] != $tebus[$index - 1]['teller'])
-
- | Teller : {{ $item['teller'] }} |
-
- @php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
- @endif
- @else
-
- | Teller : {{ $item['teller'] }} |
-
- @php $totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0; @endphp
+ @php
+ $counter = 1;
+ $totalduitmasuk = 0;
+ $totalkeuntungan = 0;
+ $totalpendahuluan = 0;
+ $totalujrah = 0;
+ $totalonepercent = 0;
+@endphp
+@foreach($tebus as $index=>$item)
+@php
+ $totalduitmasuk += $item['duit_masuk'];
+ $totalkeuntungan += $item['bayaran_keuntungan'];
+ $totalpendahuluan += $item['bayaran_pembiayaan'];
+ $totalujrah += bcdiv(round($item['ansuranujrah'],2),1,1);
+ $totalonepercent += bcdiv(round($item['ansuranonepercent'],2),1,1);
+@endphp
+
+@if($index > 0)
+@if($item['teller'] != $tebus[$index - 1]['teller'])
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+@endif
+@else
+
+ | Teller : {{ $item['teller'] }} |
+
+ @php
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ $totalujrahteller = 0;
+ $totalonepercentteller = 0;
+ @endphp
+@endif
+
+| {{ $counter }} |
+{{$item['norujukan']}} |
+{{ $item['nama'] }} |
+{{ $item['nokp'] }} |
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d H:i:s', $item['tarikh_bayaran']);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate)
+@endphp |
+{{ $item['tempoh'] }} |
+{{ number_format($item['bakipjm'],2) }} |
+{{ number_format($item['bayaran_pembiayaan'],2) }} |
+{{ number_format(bcdiv(round($item['ansuranujrah'],2),1,1),2) }} |
+{{ number_format(bcdiv(round($item['ansuranonepercent'],2),1,1),2) }} |
+{{ number_format($item['bayaran_keuntungan'],2) }} |
+{{ number_format($item['duit_masuk'],2) }} |
+
+@php $counter++; @endphp
+@php
+ $totaldmteller += $item['duit_masuk'];
+ $totalupahteller += $item['bayaran_keuntungan'];
+ $totalpendhteller += $item['bayaran_pembiayaan'];
+ $totalujrahteller += bcdiv(round($item['ansuranujrah'],2),1,1);
+ $totalonepercentteller += bcdiv(round($item['ansuranonepercent'],2),1,1);
+@endphp
+
+@if($index+1 < sizeof($tebus))
+ @if($item['teller'] != $tebus[$index + 1]['teller'])
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpendhteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totaldmteller,2) }} |
+
+ @php
+ $counter = 1;
+ $totaldmteller = 0;
+ $totalupahteller = 0;
+ $totalpendhteller = 0;
+ @endphp
@endif
-
- | {{ $counter }} |
- {{$item['norujukan']}} |
- {{ $item['nama'] }} |
- {{ $item['nokp'] }} |
- {{ $item['tempoh'] }} |
- {{ number_format($item['bakipjm'],2) }} |
- {{ number_format($item['bayaran_pembiayaan'],2) }} |
- {{ number_format($item['bayaran_keuntungan'],2) }} |
- {{ number_format($item['duit_masuk'],2) }} |
-
- @php $counter++; @endphp
- @php $totaldmteller += $item['duit_masuk'];$totalupahteller += $item['bayaran_keuntungan'];$totalpendhteller += $item['bayaran_pembiayaan']; @endphp
- @if($index+1 < sizeof($tebus))
- @if($item['teller'] != $tebus[$index + 1]['teller'])
-
- | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
- {{ number_format($totalpendhteller,2) }} |
- {{ number_format($totalupahteller,2) }} |
- {{ number_format($totaldmteller,2) }} |
-
- @php $counter = 1;$totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0;@endphp
- @endif
- @else
-
- | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
- {{ number_format($totalpendhteller,2) }} |
- {{ number_format($totalupahteller,2) }} |
- {{ number_format($totaldmteller,2) }} |
-
- @endif
- @endforeach
+@else
+
+ | {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ {{ number_format($totalpendhteller,2) }} |
+ {{ number_format($totalujrahteller,2) }} |
+ {{ number_format($totalonepercentteller,2) }} |
+ {{ number_format($totalupahteller,2) }} |
+ {{ number_format($totaldmteller,2) }} |
+
+@endif
+@endforeach
-
- |
- Bayaran Pemb. (RM) |
- Keuntungan (RM) |
- Bayaran (RM) |
-
-
- | JUMLAH KESELURUHAN |
- {{ number_format($totalpendahuluan,2) }} |
- {{ number_format($totalkeuntungan,2) }} |
- {{ number_format($totalduitmasuk,2) }} |
-
+
+ |
+Bayaran Pemb. (RM) |
+Ujrah (RM) |
+Keuntungan 1% (RM) |
+Keuntungan (RM) |
+Bayaran (RM) |
+
+
+| JUMLAH KESELURUHAN |
+{{ number_format($totalpendahuluan,2) }} |
+{{ number_format($totalujrah,2) }} |
+{{ number_format($totalonepercent,2) }} |
+{{ number_format($totalkeuntungan,2) }} |
+{{ number_format($totalduitmasuk,2) }} |
+
-
- |
- .................................................................. |
- |
- .................................................................. |
- |
-
-
- |
- DI SEMAK |
- |
- DI SAHKAN |
- |
-
+
+ |
+ .................................................................. |
+ |
+.................................................................. |
+ |
+
+
+ |
+ DI SEMAK |
+ |
+DI SAHKAN |
+ |
+
-