update report using relation, fix error jana notis 30 hari

This commit is contained in:
Amirah22
2022-11-08 09:53:47 +08:00
parent 3d614dd677
commit 3a2128cff7
6 changed files with 70 additions and 65 deletions
+33 -12
View File
@@ -46,6 +46,7 @@
<th>Bil</th>
<th>No Rujukan</th>
<th>No Kad Pengenalan</th>
<th>No Telefon</th>
<th>Tempoh</th>
<th>Berat (gm)</th>
<th>Pembiayaan (RM)</th>
@@ -54,22 +55,42 @@
<th>Keuntungan Telah Bayar (RM)</th>
</tr>
</thead>
@foreach($getsurat as $surat)
@foreach($getsurat as $index1=> $notis)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
<td>{{ $notis['norujukan'] }}</td>
<td>{{ $notis['nokp'] }}</td>
<td>6{{ $notis['nama'][0]['telefon'] }}</td>
<td>{{ $notis['tempoh'] }}</td>
<td>{{ $notis['berat'] }}</td>
<td>{{ $notis['pinjaman'] }}</td>
<td>{{ $notis['bakipjm'] }}</td>
<td>{{ $notis['bakiupah'] }}</td>
<td>{{ number_format($notis['ktlhbyr'] , 2, '.', ',')}}</td>
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
@endforeach
</tr>
@endforeach
{{-- @foreach($getsurat as $surat)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $surat['list_norujukan'][0]['norujukan'] }}</td>
<td>{{ $surat['list_norujukan'][0]['nokp'] }}</td>
<td>60{{ $surat['list_norujukan'][0]['telefon'] }}</td>
<td>{{ $surat['list_norujukan'][0]['tempoh'] }}</td>
<td>{{ $surat['list_norujukan'][0]['berat'] }}</td>
<td>{{ $surat['list_norujukan'][0]['pinjaman'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakipjm'] }}</td>
<td>{{ $surat['list_norujukan'][0]['bakiupah'] }}</td>
<td>{{ number_format($surat['ktlhbyr'] , 2, '.', ',')}}</td>
</tr>
@endforeach --}}
</div>
</div>
+4 -4
View File
@@ -86,7 +86,7 @@ tr:nth-child(even) {
</tr>
</table>
<table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
{{-- <table cellspacing="" cellpadding="5" text-align="left" border="0" height="25" align="left" id="sim">
<thead>
<br>
<tr>
@@ -105,7 +105,7 @@ tr:nth-child(even) {
@endforeach
</tr>
</thead>
</table>
</table> --}}
<br>
@@ -121,14 +121,14 @@ tr:nth-child(even) {
</tr>
</thead>
@foreach ($marhuns as $index=> $details)
@foreach ($lelong_bid as $index=> $details)
<tr>
<td width="5%" align="center">{{ $loop->iteration }} </td>
<td width="14%" align="center">{{ $details['norujukan']}}</td>
<td width="14%" align="center">{{ $details['marhun']}}</td>
<td width="17%" align="center">{{ number_format($details['berat'], 2, '.', ',') }}</td>
<td>{{ $datasimulasi[$index]['hargaasas'] }}</td>
<td width="17%" align="center">{{ number_format($details['hargaasas'], 2, '.', ',') }}</td>
</tr>
@endforeach