find error 14
This commit is contained in:
@ -240,62 +240,65 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (sizeof($data['DataLimit']) OR sizeof($data['DataFasilitas']))
|
||||
@if (sizeof($data['DataLimit']))
|
||||
@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);
|
||||
@endphp
|
||||
<tr class="space1">
|
||||
|
||||
@php $i=1 @endphp
|
||||
@foreach ($data['DataLimit'] as $limit)
|
||||
<td class="text-center space1">{{ $i++ }}</td>
|
||||
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
||||
<td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td>
|
||||
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
||||
<td class="space1">{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
||||
<td class="text-center space1">{{ $term }} </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 (sizeof($data['DataFasilitas']))
|
||||
@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);
|
||||
$no = 0;
|
||||
if (count( $data['DataLimit']) > 0) {
|
||||
$no = count($data['DataLimit']) + 1 ;
|
||||
}else{
|
||||
$no = 1 ;
|
||||
}
|
||||
@endphp
|
||||
<tr class="space1">
|
||||
|
||||
<td class="text-center space1">{{ $i++ }}</td>
|
||||
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
||||
<td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td>
|
||||
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
||||
<td class="space1">{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
||||
<td class="text-center space1">{{ $term }} </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
|
||||
|
||||
@php
|
||||
$no = 0;
|
||||
if (count( $data['DataLimit']) > 0) {
|
||||
$no = count($data['DataLimit']) + 1 ;
|
||||
}else{
|
||||
$no = 1 ;
|
||||
}
|
||||
@endphp
|
||||
|
||||
@foreach ($data['DataFasilitas'] as $fasilitas)
|
||||
<tr class="space1" style="background-color: antiquewhite">
|
||||
<td class="text-center space1">{{ $no++ }}</td>
|
||||
<td class="space1">{{ $fasilitas->jenis_fasilitas }}</td>
|
||||
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->start_date)->format('d-m-Y') }}</td>
|
||||
<td class="text-center space1">{{ $fasilitas->mata_uang }}</td>
|
||||
<td class="space1">{{ $fasilitas->saldo }}</td>
|
||||
<td class="text-center space1 ">{{ $fasilitas->jangka_waktu }}</td>
|
||||
<td class="text-center space1">{{ $fasilitas->fixed_rate }} %</td>
|
||||
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->due_date)->format('d-m-Y') }}</td>
|
||||
<td class="text-center space1">{{ $fasilitas->nomor_rekening }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@foreach ($data['DataFasilitas'] as $fasilitas)
|
||||
<tr class="space1" style="background-color: antiquewhite">
|
||||
<td class="text-center space1">{{ $no++ }}</td>
|
||||
<td class="space1">{{ $fasilitas->jenis_fasilitas }}</td>
|
||||
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->start_date)->format('d-m-Y') }}</td>
|
||||
<td class="text-center space1">{{ $fasilitas->mata_uang }}</td>
|
||||
<td class="space1">{{ $fasilitas->saldo }}</td>
|
||||
<td class="text-center space1 ">{{ $fasilitas->jangka_waktu }}</td>
|
||||
<td class="text-center space1">{{ $fasilitas->fixed_rate }} %</td>
|
||||
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->due_date)->format('d-m-Y') }}</td>
|
||||
<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;">Tidak Ada Fasilitas </td>
|
||||
|
Reference in New Issue
Block a user