fixsing fasilitas

This commit is contained in:
KhatamNugraha
2024-04-23 16:23:19 +07:00
parent bb8aa9634f
commit 692a816190
5 changed files with 69 additions and 60 deletions

View File

@ -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>