@extends('cms.layouts.authorized', ['isVue' => true]) @inject('constant', '\App\Util\Constant') @section('title', 'Detil Invoice #'. $model->id) @section('headerCustom') @php $id = 0; if (!empty($model->getKey())) $id = $model->getKey(); $formUrl = $model->getUrlDetails(['id' => $id]); $cancelUrl = $model->getUrlIndex(); $language = ''; $title = 'Detail Pembiayaan Invoice'; @endphp @endsection @section('cssCustom') @endsection @section('content') @include('cms.form.errorbox')
@if($model->status === $constant::INVOICE_STATUS_VERIFICATION) @endif
{{ $model->invoiceNumber }} {{ $model->status == Constant::INVOICE_STATUS_VERIFICATION ? @$badgeApprovalVerificationText : @$constant::INVOICE_STATUS_LABELS[$model->status] }} {{ @$constant::INVOICE_PAYMENT_STATUS_LABLES[$model->statusPayment] }} {{ @$constant::INVOICE_REPAYMENT_STATUS_LABLES[$model->statusRepayment] }}
Tanggal Pengajuan
: {{ \Carbon::parse($model->createdAt)->format('d/m/y') }}
@if($model->status !== $constant::INVOICE_STATUS_VERIFICATION)
Pengajuan Disetujui
: {{ \Carbon::parse($model->approvedAt)->format('d/m/y') }}
Penawaran Ditutup
: {{ \Carbon::parse($model->offerClosedAt)->format('d/m/y') }}
Pembiayaan Aktif
: {{ !empty($model->activeAt) ? \Carbon::parse($model->activeAt)->format('d/m/y') : '-' }}
Pembiayaan Jatuh Tempo
: @php $dueDate = \Carbon::parse($model->dueDate)->startOfDay(); $dateNow = \Carbon::parse('today')->startOfDay(); @endphp {{ !empty($model->dueDate) ? \Carbon::parse($model->dueDate)->format('d/m/y') : '-'}} @if(($model->status == 'ACTIVE') &&(!empty($model->dueDate) && $dateNow->greaterThan($dueDate))) Terlambat {{ $dateNow->diffIndays($dueDate) }} @endif
Tanggal Repayment
: {{ !empty($model->repaymentDate) ? \Carbon::parse($model->repaymentDate)->format('d/m/y') : '-' }}
@if ($model->status === Constant::INVOICE_STATUS_CANCELLED)
Tanggal Pembatalan
: {{ !empty($model->cancelledAt) ? \Carbon::parse($model->cancelledAt)->format('d/m/y') : '-' }}
Alasan Pembatalan
: {{ $model->remark }}
@endif @endif
File Pendukung
Admin Fee Borrower
:
Simulasi Pembiayaan
:
@if(file_exists(public_path().'/'.env('UPLOAD_DOCUMENT').'Simulasi-Pembiayaan-'.$model->invoiceNumber.'.pdf')) Lihat File @endif
Fact Sheet
:
@if(file_exists(public_path().'/'.env('UPLOAD_DOCUMENT').'Factsheet-Invoce-'.$model->invoiceNumber.'.pdf')) Lihat File @endif
Detail Borrower
ID
: {{ $borrower->creditApplicationBusiness->id }}
Tipe Pinjaman
:
Tipe Borrower
: {{ $constant::CREDIT_APPLICATION_TYPE_LABELS[$borrower->type] }}
Tipe Pembiayaan
:
Nomor Kontrak
:
Tanggal Kontrak
:
contractDate }}" readonly>
Nama Perusahaan
: {{ $borrower->creditApplicationBusiness->businessName }}
Nama
: {{ $borrower->fullName }}
No. HP
: {{ $borrower->mobilePhone }}
Email
: {{ $borrower->email }}
{{--
Grade
: {{ $borrower->creditApplicationBusiness->rating }}
--}}
Pricing Ujroh (%)
: {{ number_format($borrower->creditApplicationBusiness->marginRate, 2, ',', '.') }}
PPh 23 (%)
: {{ number_format($model->pph23Rate, 2, ',', '.') }}
Pengajuan Pembiayaan
@foreach($model::FORM_GROUP['invoiceInformation'] as $key) @php if (!isset($listItem)) $listItem = ''; if (!isset($listName)) $listName = ''; if (!isset($listIndex)) $listIndex = ''; $formType = $model->formType($key); if( strpos( $formType , 'Image' ) !== false ){ $imageCount = (substr($formType, 6) - 1); $formType = 'Image'; } @endphp
@if(!empty($model->labelHelp($key)))

( {{ $model->labelHelp($key) }} )

@endif
@if($formType) @include('cms.form.field.'.$formType) @else Under Construction @endif
@endforeach @if(\Auth::isAdmin() && !empty(@$model->loanType)) @if (@$model->loanType == $constant::INVOICE_LOAN_TYPE_PO_FINANCING)
Rp
@endif @endif

Dokumen Kontrak

{{----}} @if(\Auth::isAdmin() && !empty(@$model->loanType)) @if (in_array(@$model->loanType, [Constant::INVOICE_LOAN_TYPE_INVOICE_FINANCING, Constant::INVOICE_LOAN_TYPE_SCF])) {{-- --}} @else @endif @endif
Jenis DokumenUpload DokumenDokumen Asli Dokumen Privy Dokumen TTD
Dokumen Qardh @if(!empty($model->borrowerQardhContract))
Delete
getFileLimit($key) !!} data-name="borrowerQardhContract">
@else
getFileLimit($key) !!}>
@endif
@if(!empty($model->borrowerQardhContract)) Lihat Dokumen @else - @endif @if(!empty($model->privyDocumentQardhToken)) Lihat di Privy @else - @endif @if($model->privyDocumentQardhStatus == \App\Util\PrivyConstant::DOCUMENT_STATUS_COMPLETED) Lihat Dokumen @else - @endif
Dokumen Musyarakah @if(!empty($model->borrowerMusyarakahContract)) Lihat Dokumen @else - @endif @if(!empty($model->privyDocumentMusyarakahToken)) Lihat di Privy @else - @endif @if($model->privyDocumentMusyarakahStatus == \App\Util\PrivyConstant::DOCUMENT_STATUS_COMPLETED) Lihat Dokumen @else - @endif
Dokumen Wakalah Bil Ujroh @if(!empty($model->borrowerWakalahContract)) Lihat Dokumen @else - @endif @if(!empty($model->privyDocumentWakalahToken)) Lihat di Privy @else - @endif @if($model->privyDocumentWakalahStatus == \App\Util\PrivyConstant::DOCUMENT_STATUS_COMPLETED) Lihat Dokumen @else - @endif
Dokumen Pendukung
{!! !empty($model->documentText) ? '

Link : '.$model->documentText.'

' : '' !!}
@{{ attachment.name.length > 50 ? attachment.name.substr(0, 35) + '.....' + attachment.name.substr(-10) : attachment.name}}
 
 
@if (checkPermission(\App\Util\AclConstant::INVOICE_UPDATE)) @endif
Kembali ke Daftar   @if ($model->status === $constant::INVOICE_STATUS_VERIFICATION && $model->approvalVerfication == $constant::INVOICE_STATUS_VERIFICATION_APPROVAL_SCF) @endif
@if($model->status === $constant::INVOICE_STATUS_VERIFICATION && $model->approvalVerfication == $constant::INVOICE_STATUS_VERIFICATION_APPROVAL_SCF) @endif
@if ($model->status === $constant::INVOICE_STATUS_VERIFICATION) @endif @if (in_array($model->status, $constant::INVOICE_CANCELABLE_STATUS_LIST)) @endif @endsection @section('jsCustom') @endsection