diff --git a/resources/views/modal/pendahuluanserahan.blade.php b/resources/views/modal/pendahuluanserahan.blade.php
index a3c84af..aa519f0 100644
--- a/resources/views/modal/pendahuluanserahan.blade.php
+++ b/resources/views/modal/pendahuluanserahan.blade.php
@@ -13,6 +13,7 @@
diff --git a/resources/views/print/laporan_gadaian.blade.php b/resources/views/print/laporan_gadaian.blade.php
index 031a6b8..579693b 100644
--- a/resources/views/print/laporan_gadaian.blade.php
+++ b/resources/views/print/laporan_gadaian.blade.php
@@ -261,7 +261,7 @@
{{ number_format($totalupah12,2) }} |
- @php $counter = 1; @endphp
+ @php $counter = 1;$totalupah12 = 0;$totalpinjamanteller = 0;$totalnmteller = 0; @endphp
@endif
@else
diff --git a/resources/views/print/laporan_marhunterkumpul.blade.php b/resources/views/print/laporan_marhunterkumpul.blade.php
index 6d5fb6b..19eb078 100644
--- a/resources/views/print/laporan_marhunterkumpul.blade.php
+++ b/resources/views/print/laporan_marhunterkumpul.blade.php
@@ -222,30 +222,34 @@
| N.Marhun |
Catatan |
- @php $counter = 1;$totalberat = 0;$totalnm = 0;$masuk = false;$pertama = true;@endphp
+ @php $counter = 1;$totalberat = 0;$totalnm = 0;$masuk = false;$pertama = true;$totalkeseluruhanmarhun = 0;$totalkeseluruhanpinjaman = 0;$totalkeseluruhanberat = 0;@endphp
@foreach($marhun as $index=>$item)
+ @php $totalkeseluruhanmarhun += floatval($item['n_marhun']);$totalkeseluruhanberat += floatval($item['berat']); @endphp
@if($index == 0)
+ {{-- | masuk mula | --}}
{{ $counter }} |
{{ $item['norujukan'] }} |
{{ $item['nokp'] }} |
{{ $item['nama'] }} |
- {{ $item['pinjaman'] }} |
+ {{ number_format($item['pinjaman'],2) }} |
{{ $item['marhun'] }} |
{{ $item['karat'] }} |
{{ $item['berat'] }} |
- {{ $item['n_marhun'] }} |
+ {{ number_format($item['n_marhun'],2) }} |
|
|
|
|
|
@if($index != sizeof($marhun) - 1)
+ {{-- kedua | --}}
@if($item['norujukan'] != $marhun[$index+1]['norujukan'])
+ {{-- | ketiga | --}}
|
- JUMLAH |
+ JUMLAH |
{{ number_format($item['berat'],2) }} |
{{ number_format($item['n_marhun'],2) }} |
|
@@ -256,7 +260,7 @@
@endif
@endif
- @php $counter++; @endphp
+ @php $counter++; $masuk = true;@endphp
@else
@if($item['norujukan'] == $marhun[$index-1]['norujukan'])
{{--
masuk 1 | --}}
@@ -267,8 +271,8 @@
|
{{ $item['marhun'] }} |
{{ $item['karat'] }} |
-
{{ $item['berat'] }} |
-
{{ $item['n_marhun'] }} |
+
{{ number_format($item['berat'],2) }} |
+
{{ number_format($item['n_marhun'],2) }} |
|
|
|
@@ -280,21 +284,21 @@
@endphp
@else
- @php
- $totalberat += floatval($item['berat']);
- $totalnm += floatval($item['n_marhun']);
- @endphp
+ @php
+ $totalberat += floatval($item['berat']);
+ $totalnm += floatval($item['n_marhun']);
+ @endphp
{{--
masuk2 | --}}
{{ $counter }} |
{{ $item['norujukan'] }} |
{{ $item['nokp'] }} |
{{ $item['nama'] }} |
-
{{ $item['pinjaman'] }} |
+
{{ number_format($item['pinjaman'],2) }} |
{{ $item['marhun'] }} |
{{ $item['karat'] }} |
-
{{ $item['berat'] }} |
-
{{ $item['n_marhun'] }} |
+
{{ number_format($item['berat'],2) }} |
+
{{ number_format($item['n_marhun'],2) }} |
|
|
|
@@ -324,7 +328,7 @@
@endif
@if(($index == sizeof($marhun) - 1))
- {{--
kucen | --}}
+ {{--
kucen2 | --}}
|
JUMLAH |
@@ -342,6 +346,19 @@
@endforeach
+
+ |
+ |
+ |
+ JUMLAH |
+ {{ number_format($totalkeseluruhanberat,2) }} |
+ {{ number_format($totalkeseluruhanmarhun,2) }} |
+
+ |
+ |
+ |
+ |
+ |
diff --git a/resources/views/print/laporan_penebusan.blade.php b/resources/views/print/laporan_penebusan.blade.php
index 0a0a048..442e8cb 100644
--- a/resources/views/print/laporan_penebusan.blade.php
+++ b/resources/views/print/laporan_penebusan.blade.php
@@ -213,13 +213,15 @@
T Gadai |
T Tebus |
JBG |
+
J Tebus |
Pembiayaan(RM) |
Upah/Keuntungan(RM) |
Bayaran(RM) |
+
Jumlah(RM) |
@php $counter = 1; $totalbayaran = 0;@endphp
@foreach($tebus as $index=>$item)
- @php $totalbayaran += $item['bakipjm'] @endphp
+ @php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
@if($index > 0)
@if($item['teller'] != $tebus[$index - 1]['teller'])
@@ -231,7 +233,7 @@
| Teller : {{ $item['teller'] }} |
- @php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp
+ @php $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp
@endif
| {{ $counter }} |
@@ -249,33 +251,46 @@
@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $gadai_detail[0][0]['t_gadai']);
$formattedweddingdate = $myDateTime->format('d-m-Y');
- echo($formattedweddingdate)
+ echo($formattedweddingdate);
@endphp
- {{$item['t_tebus']}} |
- {{$item['jbg']}} |
- {{$item['pinjaman']}} |
- {{$item['bakiupah']}} |
- {{$item['bakipjm']}} |
+
+ @php
+ $myDateTime = DateTime::createFromFormat('Y-m-d', $item['t_tebus']);
+ $formattedweddingdate = $myDateTime->format('d-m-Y');
+ echo($formattedweddingdate);
+ @endphp
+ |
+ {{ $item['jbg'] }} |
+ {{$item['jenistebus']}} |
+ {{ number_format($item['pinjaman'],2) }} |
+ {{ number_format($item['bakiupah'],2) }} |
+ {{ number_format($item['bakipjm'],2) }} |
+ @php if($item['jenistebus'] == 'S'){ $total=($item['pinjaman']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp |
@php $counter++; @endphp
@php $totalpinjamanteller += $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp
+ @php $totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
@if($index+1 < sizeof($tebus))
@if($item['teller'] != $tebus[$index + 1]['teller'])
| {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ |
{{ number_format($totalpinjamanteller,2) }} |
{{ number_format($totalupahteller,2) }} |
{{ number_format($totalbayaranteller,2) }} |
+ {{ number_format($totaljumlahteller,2) }} |
- @php $counter = 0; @endphp
+ @php $counter = 1;$totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0;$totaljumlahteller = 0; @endphp
@endif
@else
| {{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }} |
+ |
{{ number_format($totalpinjamanteller,2) }} |
{{ number_format($totalupahteller,2) }} |
{{ number_format($totalbayaranteller,2) }} |
+ {{ number_format($totaljumlahteller,2) }} |
@endif
@endforeach
@@ -334,6 +349,13 @@
{{ number_format($upahlama['total'],2) }} |
Not Applicable |
+
+ | 0 |
+ Baki Lelong |
+ 0.00 |
+ Not Applicable |
+ Not Applicable |
+