fixing query konbank

This commit is contained in:
KhatamNugraha
2024-06-05 14:27:41 +07:00
parent da5874de41
commit 79b115bcb6
3 changed files with 122 additions and 56 deletions

View File

@ -159,7 +159,47 @@
<td class="text-center space1">{{ $val['ACCOUNT_NUMBER'] }}</td>
</tr>
@endforeach
@if ($data['dataAADepo'] == null)
@if (count( $data['DataDepo']) > 0)
@php
$noDepo = 0;
if (count( $data['DataAccounts']) > 0) {
$noDepo = count($data['DataAccounts']) + 1 ;
}else{
$noDepo = 1 ;
}
@endphp
@foreach ($data['DataDepo'] as $keyDep => $depo)
<tr class="space1">
<td class="text-center space1">{{ $noDepo++ }}</td>
<td class="space1">DEPOSITO</td>
<td class="text-center space1 "></td>
<td class="text-center space1">{{ $depo['CURRENCY'] }}</td>
<td class="text-right space1">{{$depo['WORKING_BALANCE']}}</td>
<td class="text-center space1">{{ $depo['TERM'] }} BLN</td>
<td class="text-center space1">{{ $depo['FIXED_RATE'] }} %</td>
<td class="text-center space1">{{ $depo['MATURITY_DATE'] }}</td>
<td class="text-center space1">{{ $depo['ACCOUNT_NUMBER'] }}</td>
</tr>
@endforeach
@else
<tr class="space1">
<td class="text-center space1">{{ $no+1 }}</td>
<td class="text-left space1">DEPOSITO</td>
<td class=" text-center space1"></td>
<td class=" text-center space1"></td>
<td class=" text-center space1">NIHIL</td>
<td class="text-center space1 "></td>
<td class="text-center space1 "></td>
<td class="text-center space1 "></td>
<td class="text-center space1"></td>
</tr>
@endif
{{-- @if ($data['dataAADepo'] == null)
@php
$no= count($data['DataAccounts']);
@endphp
@ -175,7 +215,7 @@
<td class="text-center space1"></td>
</tr>
@endif
@endif --}}
@else
<tr class="">