fixsing fasilitas
This commit is contained in:
@ -216,8 +216,8 @@
|
||||
<td class="text-center space1 "></td>
|
||||
<td class="text-center space1">{{ $dtRK['CURRENCY'] }}</td>
|
||||
<td class="text-right space1">{{$dtRK['WORKING_BALANCE']}}</td>
|
||||
<td class="text-center space1"></td>
|
||||
<td class="text-center space1"></td>
|
||||
<td class="text-center space1">{{$dtRK['TERM']}} BLN</td>
|
||||
<td class="text-center space1">{{$dtRK['FIXED_RATE']}} %</td>
|
||||
<td class="text-center space1">{{$dtRK['MATURITY_DATE']}}</td>
|
||||
<td class="text-center space1">{{ $dtRK['ACCOUNT_NUMBER'] }}</td>
|
||||
</tr>
|
||||
@ -249,47 +249,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($data['DataLimit']) > 0 OR count($data['DataFasilitas']) > 0 )
|
||||
@if (count($data['DataLimit']) > 0)
|
||||
@php $i=1 @endphp
|
||||
@foreach ($data['DataLimit'] as $limit)
|
||||
@php
|
||||
$approvalDate = \Carbon\Carbon::parse($limit->APPROVAL_DATE);
|
||||
$expiryDate = \Carbon\Carbon::parse($limit->EXPIRY_DATE);
|
||||
$term = $expiryDate->diffInMonths($approvalDate);
|
||||
$limitPecent = intval($limit->LIMIT_PERCENTAGE) / 100 ;
|
||||
$noRek = explode(']', $limit->ACCOUNT);
|
||||
//conver term
|
||||
@endphp
|
||||
<tr class="space1">
|
||||
|
||||
<td class="text-center space1">{{ $i++ }}</td>
|
||||
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
||||
<td class="text-center space1"></td>
|
||||
{{-- <td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td> --}}
|
||||
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
||||
<td class="space1 text-right">
|
||||
{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
||||
<td class="text-center space1">{{ $term }} BLN </td>
|
||||
<td class="text-center space1">{{ $limitPecent }} %</td>
|
||||
<td class="text-center space1">{{ $expiryDate->format('d-m-Y')}}</td>
|
||||
<td class="text-center space1">
|
||||
@if(count($noRek) > 1)
|
||||
<ul class="no-bullets">
|
||||
@foreach ($noRek as $item)
|
||||
<li style=" font-family: Times New Roman,Times, sans-serif;font-size:12px">{{$item}}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@else
|
||||
{{ $limit->ACCOUNT}}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if (count($data['DataFasilitas']) > 0)
|
||||
@php
|
||||
@if (count($data['DataFasilitas']) > 0 )
|
||||
@php
|
||||
$no = 0;
|
||||
if (count( $data['DataLimit']) > 0) {
|
||||
$no = count($data['DataLimit']) + 1 ;
|
||||
@ -312,7 +273,6 @@
|
||||
<td class="text-center space1">{{ $fasilitas['nomor_rekening'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
@else
|
||||
<tr class="space1">
|
||||
<td class="space1" colspan="9" style="text-align: center;">NIHIL</td>
|
||||
|
@ -473,6 +473,14 @@
|
||||
history.back();
|
||||
})
|
||||
|
||||
// Fungsi untuk memeriksa apakah suatu nilai adalah float
|
||||
function isFloat(value) {
|
||||
// Menggunakan parseFloat untuk mengubah string menjadi float
|
||||
var floatValue = parseFloat(value);
|
||||
// Memeriksa apakah hasil konversi bukan NaN dan apakah nilai asli sama dengan versi float-nya
|
||||
return !isNaN(floatValue) && floatValue == value;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
@ -25,7 +25,12 @@
|
||||
<td class="text-center">{{$item['jenis_fasilitas']}}</td>
|
||||
<td class="text-center">{{$item['cabang']}}</td>
|
||||
<td class="text-center">{{$item['jenis_rekening']}}</td>
|
||||
<td class="" style="text-align: right">{{ number_format(floatval($item['saldo']), 2, ',', '.'); }}</td>
|
||||
<td class="" style="text-align: right">{{ number_format(floatval($item['saldo']), 2, ',', '.') }}</td>
|
||||
{{-- @if (isFloat($item['saldo']))
|
||||
<td class="" style="text-align: right">{{ number_format(floatval($item['saldo']), 2, ',', '.') }}</td>
|
||||
@else
|
||||
<td class="" style="text-align: right">{{ number_format($item['saldo'], 2, ',', '.') }} </td>
|
||||
@endif --}}
|
||||
<td class="text-center">{{$item['start_date']}}</td>
|
||||
<td class="text-center">{{$item['due_date']}}</td>
|
||||
<td class="text-center">{{$item['fixed_rate']}}</td>
|
||||
|
Reference in New Issue
Block a user