latest server
This commit is contained in:
@@ -206,8 +206,8 @@
|
||||
<th>Tempoh</th>
|
||||
<th>Baki Pembiayaan (RM)</th>
|
||||
<th>Bayaran Pemb. (RM)</th>
|
||||
<th>Bayaran (RM)</th>
|
||||
<th>Keuntungan (RM)</th>
|
||||
<th>Bayaran (RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1;$totalduitmasuk = 0;$totalkeuntungan = 0; $totalpendahuluan = 0;@endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@@ -233,8 +233,8 @@
|
||||
<td>{{ $item['tempoh'] }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_pembiayaan'],2) }}</td>
|
||||
<td>{{ number_format($item['duit_masuk'],2) }}</td>
|
||||
<td>{{ number_format($item['bayaran_keuntungan'],2) }}</td>
|
||||
<td>{{ number_format($item['duit_masuk'],2) }}</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php $totaldmteller += $item['duit_masuk'];$totalupahteller += $item['bayaran_keuntungan'];$totalpendhteller += $item['bayaran_pembiayaan']; @endphp
|
||||
@@ -243,8 +243,8 @@
|
||||
<tr>
|
||||
<td colspan="6">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totaldmteller = 0;$totalupahteller = 0;$totalpendhteller = 0;@endphp
|
||||
@endif
|
||||
@@ -252,8 +252,8 @@
|
||||
<tr>
|
||||
<td colspan="6">{{ $counter-1 }} Jumlah Bagi Teller : {{ $item['teller'] }}</td>
|
||||
<td><b>{{ number_format($totalpendhteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaldmteller,2) }} </b></td>
|
||||
</tr>
|
||||
@endif
|
||||
@endforeach
|
||||
@@ -264,14 +264,14 @@
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th style="text-align:center;">Bayaran Pemb. (RM)</th>
|
||||
<th style="text-align:center;">Bayaran (RM)</th>
|
||||
<th style="text-align:center;">Keuntungan (RM)</th>
|
||||
<th style="text-align:center;">Bayaran (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalpendahuluan,2) }}</td>
|
||||
<td>{{ number_format($totalduitmasuk,2) }}</td>
|
||||
<td>{{ number_format($totalkeuntungan,2) }}</td>
|
||||
<td>{{ number_format($totalduitmasuk,2) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -202,27 +202,28 @@
|
||||
<th>JBG</th>
|
||||
<th>J Tebus</th>
|
||||
<th width="6%;">Nilai Marhun(RM)</th>
|
||||
<th width="6%;">Pembiayaan(RM)</th>
|
||||
<th width="6%;">P. Asal(RM)</th>
|
||||
<th width="6%;">B.Pembiayaan(RM)</th>
|
||||
{{-- <th width="6%;">Baki Pembiayaan(RM)</th> --}}
|
||||
<th width="6%;">Upah/Keuntungan(RM)</th>
|
||||
<th width="6%;">Keuntungan(RM)</th>
|
||||
<th width="6%;">Bayaran(RM)</th>
|
||||
<th width="6%;">Jumlah(RM)</th>
|
||||
</tr>
|
||||
@php $counter = 1;$totalnm = 0; $totalbayaran = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
|
||||
@php $counter = 1;$totalnm = 0; $totalbayaran = 0;$totalpinjamanasal = 0; $totalpinjaman = 0; $totalupah = 0;@endphp
|
||||
@foreach($tebus as $index=>$item)
|
||||
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman']; $totalupah += $item['bakiupah']; $totalnm += $item['nilaimarhun'];@endphp
|
||||
@php $totalbayaran += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm']; $totalpinjaman += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman']; $totalupah += $item['bakiupah'];$totalpinjamanasal += $item['pinjaman']; $totalnm += $item['nilaimarhun'];@endphp
|
||||
@if($index > 0)
|
||||
@if($item['teller'] != $tebus[$index - 1]['teller'])
|
||||
<tr>
|
||||
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $totalnmteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp
|
||||
@php $totalnmteller = 0;$totalpinjamanasalteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr>
|
||||
<td colspan="12">Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
</tr>
|
||||
@php $totalnmteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp
|
||||
@php $totalnmteller = 0;$totalpinjamanasalteller = 0; $totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0; $totaljumlahteller = 0;@endphp
|
||||
@endif
|
||||
<tr>
|
||||
<td>{{ $counter }}</td>
|
||||
@@ -241,6 +242,7 @@
|
||||
<td>
|
||||
{{ number_format($item['nilaimarhun'],2) }}
|
||||
</td>
|
||||
<td>{{ number_format($item['pinjaman'],2) }}</td>
|
||||
<td>@php
|
||||
|
||||
if($item['hargajualan'] !== $item['bakihargajualan'])
|
||||
@@ -251,27 +253,29 @@
|
||||
{{-- <td>{{ number_format($item['gadaibakipjm'],2) }}</td> --}}
|
||||
<td>{{ number_format($item['bakiupah'],2) }}</td>
|
||||
<td>{{ number_format($item['bakipjm'],2) }}</td>
|
||||
<td>@php if($item['jenistebus'] == 'S'){ $total=($item['pinjaman']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp</td>
|
||||
<td>@php if($item['jenistebus'] == 'S'){ $total=($item['gadaibakipjm']+$item['bakiupah']);echo number_format($total,2);} else echo number_format($item['bakipjm'],2); @endphp</td>
|
||||
</tr>
|
||||
@php $counter++; @endphp
|
||||
@php $totalnmteller += $item['nilaimarhun']; $totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp
|
||||
@php $totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['pinjaman']+$item['bakiupah']) : $item['bakipjm']; @endphp
|
||||
@php $totalnmteller += $item['nilaimarhun'];$totalpinjamanasalteller += $item['pinjaman']; $totalpinjamanteller += ($item['hargajualan'] != $item['bakihargajualan']) ? $item['gadaibakipjm'] : $item['pinjaman'];$totalupahteller += $item['bakiupah'];$totalbayaranteller += $item['bakipjm']; @endphp
|
||||
@php $totaljumlahteller += ($item['jenistebus'] === 'S') ? ($item['gadaibakipjm']+$item['bakiupah']) : $item['bakipjm']; @endphp
|
||||
@if($index+1 < sizeof($tebus))
|
||||
@if($item['teller'] != $tebus[$index + 1]['teller'])
|
||||
<tr class="new-page">
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totaljumlahteller,2) }} </b></td>
|
||||
</tr>
|
||||
@php $counter = 1;$totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0;$totaljumlahteller = 0; @endphp
|
||||
@php $counter = 1;$totalpinjamanasalteller = 0;$totalpinjamanteller = 0;$totalupahteller = 0;$totalbayaranteller = 0;$totaljumlahteller = 0; @endphp
|
||||
@endif
|
||||
@else
|
||||
<tr class="new-page">
|
||||
<td colspan="7"><b>{{ $counter-1 }}</b> Jumlah Bagi Teller : <b>{{ $item['teller'] }}</b></td>
|
||||
<td><b>{{ number_format($totalnmteller,2) }}</b></td>
|
||||
<td><b>{{ number_format($totalpinjamanasalteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalpinjamanteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalupahteller,2) }} </b></td>
|
||||
<td><b>{{ number_format($totalbayaranteller,2) }} </b></td>
|
||||
@@ -286,13 +290,15 @@
|
||||
<tr>
|
||||
<th colspan="9"></th>
|
||||
<th style="text-align:center;">Nilai Marhun (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Pembiayaan Asal(RM)</th>
|
||||
<th style="text-align:center;">B. Pembiayaan (RM)</th>
|
||||
<th style="text-align:center;">Upah/Keuntungan (RM)</th>
|
||||
<th style="text-align:center;">Jumlah (RM)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="9" style="text-align: center;"><b>JUMLAH KESELURUHAN</b></td>
|
||||
<td>{{ number_format($totalnm,2) }}</td>
|
||||
<td>{{ number_format($totalpinjamanasal,2) }}</td>
|
||||
<td>{{ number_format($totalpinjaman,2) }}</td>
|
||||
<td>{{ number_format($totalupah,2) }}</td>
|
||||
<td>{{ number_format($totalbayaran,2) }}</td>
|
||||
@@ -331,13 +337,6 @@
|
||||
<td>{{ number_format($upahlama['total'],2) }}</td>
|
||||
<td> Not Applicable </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}</h5> --}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
<tr>
|
||||
<td>{{ $ansuran['bilangan'] }}</td>
|
||||
<td>Ansuran Pembiayaan</td>
|
||||
@@ -347,6 +346,9 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{{-- <h5 style="float:right;">JUMLAH KESELURUHAN BAYARAN : RM {{ number_format($totalbayaran,2) }}</h5> --}}
|
||||
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
|
||||
Reference in New Issue
Block a user