find error 14
This commit is contained in:
@ -240,62 +240,65 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@if (sizeof($data['DataLimit']) OR sizeof($data['DataFasilitas']))
|
@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
|
<td class="text-center space1">{{ $i++ }}</td>
|
||||||
@foreach ($data['DataLimit'] as $limit)
|
<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
|
@php
|
||||||
$approvalDate = \Carbon\Carbon::parse($limit->APPROVAL_DATE);
|
$no = 0;
|
||||||
$expiryDate = \Carbon\Carbon::parse($limit->EXPIRY_DATE);
|
if (count( $data['DataLimit']) > 0) {
|
||||||
$term = $expiryDate->diffInMonths($approvalDate);
|
$no = count($data['DataLimit']) + 1 ;
|
||||||
$limitPecent = intval($limit->LIMIT_PERCENTAGE) / 100 ;
|
}else{
|
||||||
$noRek = explode(']', $limit->ACCOUNT);
|
$no = 1 ;
|
||||||
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<tr class="space1">
|
|
||||||
|
|
||||||
<td class="text-center space1">{{ $i++ }}</td>
|
@foreach ($data['DataFasilitas'] as $fasilitas)
|
||||||
<td class="space1">{{ $limit->SHORT_NAME }}</td>
|
<tr class="space1" style="background-color: antiquewhite">
|
||||||
<td class="text-center space1">{{ $approvalDate->format('d-m-Y') }}</td>
|
<td class="text-center space1">{{ $no++ }}</td>
|
||||||
<td class="text-center space1">{{ $limit->LIMIT_CURRENCY }}</td>
|
<td class="space1">{{ $fasilitas->jenis_fasilitas }}</td>
|
||||||
<td class="space1">{{ ($limit->AVAIL_AMT != 0.00) ? number_format($limit->AVAIL_AMT,2,',','.') : 'NIHIL'}}</td>
|
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->start_date)->format('d-m-Y') }}</td>
|
||||||
<td class="text-center space1">{{ $term }} </td>
|
<td class="text-center space1">{{ $fasilitas->mata_uang }}</td>
|
||||||
<td class="text-center space1">{{ $limitPecent }} %</td>
|
<td class="space1">{{ $fasilitas->saldo }}</td>
|
||||||
<td class="text-center space1">{{ $expiryDate->format('d-m-Y')}}</td>
|
<td class="text-center space1 ">{{ $fasilitas->jangka_waktu }}</td>
|
||||||
<td class="text-center space1">
|
<td class="text-center space1">{{ $fasilitas->fixed_rate }} %</td>
|
||||||
@if(count($noRek) > 1)
|
<td class="text-center space1">{{ \Carbon\Carbon::parse($fasilitas->due_date)->format('d-m-Y') }}</td>
|
||||||
<ul class="no-bullets">
|
<td class="text-center space1">{{ $fasilitas->nomor_rekening }}</td>
|
||||||
@foreach ($noRek as $item)
|
</tr>
|
||||||
<li style=" font-family: Times New Roman,Times, sans-serif;font-size:12px">{{$item}}</li>
|
@endforeach
|
||||||
@endforeach
|
@endif
|
||||||
</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
|
|
||||||
@else
|
@else
|
||||||
<tr class="space1">
|
<tr class="space1">
|
||||||
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Fasilitas </td>
|
<td class="space1" colspan="9" style="text-align: center;">Tidak Ada Fasilitas </td>
|
||||||
|
Reference in New Issue
Block a user