baki tuntut fix

This commit is contained in:
hafifierahman
2021-03-03 13:39:53 +08:00
parent d2db35854e
commit 43802e3246
6 changed files with 159 additions and 37 deletions
+26 -8
View File
@@ -134,8 +134,8 @@
<tr>
<th>Bil</th>
<th>Masa</th>
<th>Debit</th>
<th>Kredit</th>
<th>Debit (RM)</th>
<th>Kredit (RM)</th>
<th>Nota</th>
</tr>
</thead>
@@ -149,8 +149,8 @@
<tr>
<th>Bil</th>
<th>No Rujukan</th>
<th>Pinjaman</th>
<th>Nilai Marhun</th>
<th>Pinjaman (RM)</th>
<th>Nilai Marhun (RM)</th>
<th>Jenis Transaksi</th>
</tr>
</thead>
@@ -181,12 +181,30 @@
<thead>
<tr>
<th>Bil</th>
<th>Masa</th>
<th>Debit</th>
<th>Kredit</th>
<th>Nota</th>
<th>Tarikh</th>
<th>Caj Lelong (RM)</th>
<th>Jumlah (RM)</th>
<th>Jenis</th>
</tr>
</thead>
<tbody>
@if(is_object($tuntutbaki) || is_array($tuntutbaki))
@foreach($tuntutbaki as $tb)
<tr>
<td> {{ $loop->iteration }} </td>
<td> {{ $tb['tarikh'] }} </td>
<td> {{ $tb['cajlelong'] }} </td>
<td> {{ $tb['jumlah'] }} </td>
<td> @php if($tb['jenis'] == 'T'){
echo '<h4><span class="badge badge-success">Baki Lelong</span></h4>';
}else{
echo '<h4><span class="badge badge-danger">Rugi Lelong</span></h4>';
}
@endphp </td>
</tr>
@endforeach
@endif
</tbody>
</table>
</div>