update senarai mengikut pelanggan
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
@@ -46,17 +47,17 @@
|
||||
<table class="table table-striped table-xl" id="marhun" style="width:100%">
|
||||
<thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No</th>
|
||||
<th>Nama Pelanggan</th>
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>K.Tlh Byr(RM)</th>
|
||||
<th>K.6Bulan(RM)</th>
|
||||
<th>K.Semasa(RM)</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Keuntungan Telah Bayar(RM)</th>
|
||||
<th>Keuntungan 6 Bulan(RM)</th>
|
||||
<th>Keuntungan Semasa(RM)</th>
|
||||
<th>Pembiayaan Asal(RM)</th>
|
||||
<th>Baki Pembiayaan(RM)</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<!-- <th>Caj Lelong (%)</th>
|
||||
<th>Baki Lelong (RM)</th> -->
|
||||
@@ -69,12 +70,23 @@
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style='word-wrap'>{{ $marhun['nama']['nama']}}</td>
|
||||
<td style='word-wrap'>{{ $marhun['nokp']}}</td>
|
||||
<td style="white-space: nowrap;">@foreach ($marhun['listsag'] as $item)
|
||||
{{$loop->iteration}}. {{ $item['norujukan'] }}<br>
|
||||
<td style='white-space:nowrap;'>@foreach ($marhun['listsag'] as $item)
|
||||
{{-- {{$loop->iteration}}. {{ $item['norujukan'] }}<br> --}}
|
||||
{{ $item['norujukan'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['listsag'] as $item)
|
||||
{{ $item['tempoh'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align = 'right'>
|
||||
@php $jumberat = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -83,7 +95,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -94,7 +106,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['bakiupah'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -105,7 +117,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['keuntungan'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -116,7 +128,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -127,20 +139,11 @@
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumberat = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -149,7 +152,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<!-- <td align = 'right'>
|
||||
@@ -160,7 +163,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['cajlelong'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumcajlelong, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumcajlelong, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -171,7 +174,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['baki'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumbaki, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumbaki, 2, '.', ',') }}</strong>
|
||||
|
||||
</td> -->
|
||||
|
||||
|
||||
@@ -28,12 +28,12 @@
|
||||
<th>No.KP</th>
|
||||
<th>No.Rujukan</th>
|
||||
<th>Tempoh</th>
|
||||
<th>K.Tlh Byr(RM)</th>
|
||||
<th>K.6Bulan(RM)</th>
|
||||
<th>K.Semasa(RM)</th>
|
||||
<th>Berat(gm)</th>
|
||||
<th>Keuntungan Telah Bayar(RM)</th>
|
||||
<th>Keuntungan 6 Bulan(RM)</th>
|
||||
<th>Keuntungan Semasa(RM)</th>
|
||||
<th>Pembiayaan Asal(RM)</th>
|
||||
<th>Baki Pembiayaan(RM)</th>
|
||||
<th>Berat (gm)</th>
|
||||
<th>Nilai Marhun (RM)</th>
|
||||
<!-- <th>Harga Asas (RM)</th> -->
|
||||
<!-- <th>Caj Lelong (%)</th>
|
||||
@@ -47,12 +47,23 @@
|
||||
<td>{{$loop->iteration}}</td>
|
||||
<td style='word-wrap'>{{ $marhun['nama']['nama']}}</td>
|
||||
<td style='word-wrap'>{{ $marhun['nokp']}}</td>
|
||||
<td style='word-wrap'>@foreach ($marhun['listsag'] as $item)
|
||||
{{$loop->iteration}}. {{ $item['norujukan'] }}<br>
|
||||
<td style='white-space:nowrap;'>@foreach ($marhun['listsag'] as $item)
|
||||
{{-- {{$loop->iteration}}.{{ $item['norujukan'] }}<br> --}}
|
||||
{{ $item['norujukan'] }}<br>
|
||||
@endforeach</td>
|
||||
<td>@foreach ($marhun['listsag'] as $item)
|
||||
{{ $item['tempoh'] }}<br>
|
||||
@endforeach</td>
|
||||
<td align = 'right'>
|
||||
@php $jumberat = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>{{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@php $jumktlhbyr = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -61,7 +72,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['ktlhbyr'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumktlhbyr, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -72,7 +83,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['bakiupah'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -83,7 +94,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['keuntungan'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jum6bulan, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -94,7 +105,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['pinjaman'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumpinjasal, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<td align = 'right'>
|
||||
@@ -105,20 +116,11 @@
|
||||
@endphp
|
||||
{{ number_format($item['bakipjm'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumpinjaman, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumberat = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@php
|
||||
$jumberat = $jumberat + $item['berat'];
|
||||
@endphp
|
||||
{{ number_format($item['berat'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumberat, 2, '.', ',') }}</strong>
|
||||
</td>
|
||||
|
||||
<td align = 'right'>
|
||||
@php $jumnilaimarhun = 0;@endphp
|
||||
@foreach ($marhun['listsag'] as $item)
|
||||
@@ -127,7 +129,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['nilaimarhun'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumnilaimarhun, 2, '.', ',') }}</strong>
|
||||
|
||||
</td>
|
||||
<!-- <td align = 'right'>
|
||||
@@ -138,7 +140,7 @@
|
||||
@endphp
|
||||
{{ number_format($item['hargaasas'], 2, '.', ',') }}<br>
|
||||
@endforeach
|
||||
<strong>Total: {{ number_format($jumhargaasas, 2, '.', ',') }}</strong>
|
||||
<strong>{{ number_format($jumhargaasas, 2, '.', ',') }}</strong>
|
||||
|
||||
</td> -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user