@extends('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 ? @$constant::INVOICE_STATUS_VERIFICATION_APPROVAL_LABELS[$model->approvalVerfication] : @$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
Detail Borrower
ID
: {{ $borrower->creditApplicationBusiness->id }}
Tipe Pembiayaan
:
Tipe Borrower
: {{ $constant::CREDIT_APPLICATION_TYPE_LABELS[$borrower->type] }}
Tipe Pembiayaan
:
Nomor Kontrak
:
Tanggal Kontrak
:

Informasi Pribadi
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, ',', '.') }}
@if (!empty($scf))
Nama Partner SCF
: {{ $scf->name }}
@endif

Informasi Badan Usaha
Nama Badan Usaha
: {{ $borrower->creditApplicationBusiness->businessName }}
Nama Pemilik Rekening
: {{ $borrower->creditApplicationBusiness->bankAccountOwner }}
Nomor Rekening
: {{ $borrower->creditApplicationBusiness->bankAccountNumber }}
Nama Bank
: {{ $borrower->creditApplicationBusiness->bankName }}

Nama Pemilik Rekening
Pilih Nama Bank

Informasi Pengecekan Akun Bank
Status
: {{ Constant::CHECK_ACCOUNT_STATUS_LABELS[$borrower->creditApplicationBusiness->resBankStatus] }}
Nama Pemilik Rekening
: {{ $borrower->creditApplicationBusiness->resBankAccountOwner }}
Deskripsi
: {{ $borrower->creditApplicationBusiness->resDescriptionStatus }}
Admin Fee Borrower
Admin Fee
:
Rp
Tanggal Akad
:
@if (!empty($model->adminFeeDate)) @endif
Cc Email
:
Simulasi Pembiayaan
Generate @if (file_exists(public_path() . '/' . env('UPLOAD_DOCUMENT') . 'Simulasi-Pembiayaan-' . $model->invoiceNumber . '.pdf')) Lihat Simulasi Pembiayaan @endif
Konfigurasi Pembiayaan
@foreach ($model::FORM_GROUP['invoiceConfig1'] 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
  
@foreach ($model::FORM_GROUP['invoiceConfig1Sub'] 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
{{--
--}}
Rp
@foreach ($model::FORM_GROUP['invoiceConfig2'] 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 ($model->status == Constant::INVOICE_STATUS_VERIFICATION) @else @endif
@if (!in_array($model->status, [Constant::INVOICE_STATUS_APPROVED, Constant::INVOICE_STATUS_VERIFICATION]))
@endif
  
@if ($model->status == Constant::INVOICE_STATUS_VERIFICATION)
@else @endif
@foreach ($model::FORM_GROUP['invoiceConfig3'] 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 (count($transaksiDanamon))
Riwayat Transaksi Fund Transfer Danamon
{{ $transaksiDanamon[0]->type }}
@php $totalTransfer = $totalTransferSuccess = $totalTransferPending = 0; @endphp @foreach ($transaksiDanamon as $key => $value) @php if ( $value->status == Constant::FUNDTRANSFER_STATUS_TRANSACTION_SUCCESS ) { $totalTransferSuccess = $totalTransferSuccess + $value->amount; } else { $totalTransferPending = $totalTransferPending + $value->amount; } $totalTransfer = $totalTransfer + $value->amount; @endphp @endforeach
No Status Nilai Transfer Deskripsi Aksi
{{ $key + 1 }}
{{ Constant::FUNDTRANSFER_STATUS_TRANSACTION_LABELS[$value->status] }}
Rp {{ number_format($value->amount, 2, ',', '.') }} {{ $value->resDescription }}
@if ($value->status == Constant::FUNDTRANSFER_STATUS_TRANSACTION_FAILED) @endif
Total Nilai Harus di Transfer Rp {{ number_format($totalTransfer, 2, ',', '.') }}
Total Nilai Sudah di Transfer Rp {{ number_format($totalTransferSuccess, 2, ',', '.') }}
Total Nilai Belum di Transfer Rp {{ number_format($totalTransferPending, 2, ',', '.') }}
@endif
Pengajuan Pembiayaan
@if (!empty(@$model->loanType)) @if (in_array(@$model->loanType, [Constant::INVOICE_LOAN_TYPE_INVOICE_FINANCING, Constant::INVOICE_LOAN_TYPE_SCF]))
@if (!empty($model->borrowerQardhContract))
Delete
getFileLimit($key) !!} data-name="borrowerQardhContract">
@else
getFileLimit($key) !!}>
@endif
@else
@if (!empty($model->borrowerMusyarakahContract))
Delete
getFileLimit($key) !!} data-name="borrowerMusyarakahContract">
@else
getFileLimit($key) !!}>
@endif
@endif
@if (!empty($model->borrowerWakalahContract))
Delete
getFileLimit($key) !!} data-name="borrowerWakalahContract">
@else
getFileLimit($key) !!}>
@endif
@endif @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
@foreach (GetGuarantees() as $key => $value) @php $checked = ''; if (in_array($key, $guarantee)) { $checked = 'checked'; } @endphp
@endforeach
Informasi Payor
@foreach ($model::FORM_GROUP['payorInformation'] as $key) @php $keyStatus = $key . 'Status'; 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

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
Proposal
Generate Fact Sheet @if (file_exists(public_path() . '/' . env('UPLOAD_DOCUMENT') . 'Factsheet-Invoce-' . $model->invoiceNumber . '.pdf')) Lihat Fact Sheet @endif




 
 
@if (checkPermission(\App\Util\AclConstant::INVESTOR_APPLICATION_UPDATE)) @endif
@if ($model->status !== $constant::INVOICE_STATUS_VERIFICATION)
Daftar Lender
Persentase Dana Diterima

{{ number_format($rateSubmitted, 2) }} %

Total Dana Disalurkan

Rp {{ getPriceNumber($totalPaid) }}

@tableconfig
@tableajax(route('admin.restructureinvoicePaymentsData', ['invoiceId' => $model->id])) ID Nama Lender No. Va Lender Metode Pembayaran Nilai Pendanaan Waktu Pengajuan Status Akad Status Dana Status Pengembalian Dokumen Kontrak Dokumen Privy Dokumen Signed Status Pembiayaan Aksi @endtableajax
Detail Pengembalian
: {{ $model->vaNumber }}
: {{ $constant::INVOICE_REPAYMENT_STATUS_LABLES[$model->statusRepayment] }}
: {{ !empty($model->repaymentType) ? $constant::INVOICE_REPAYMENT_TYPE_LABELS[$model->repaymentType] : '' }}
@if ( $model->repaymentType == $constant::INVOICE_REPAYMENT_TYPE_LATE && $model->statusRepayment == $constant::INVOICE_REPAYMENT_STATUS_PENDING)
@endif
Daftar Pengembalian
@if (count($invoicePayorRepayment) != 0) @php $no = 0; @endphp @foreach ($invoicePayorRepayment as $item) @endforeach @else @endif
# Total Pengembalian Dana Jumlah Pokok Pengembalian Dana Jumlah Ujroh Keseluruhan Keterangan
{{ ++$no }} Rp {{ getPriceNumber($item->amount + $item->margin) }} Rp {{ getPriceNumber($item->amount) }} Rp {{ getPriceNumber($item->margin) }} {{ $item->remark }}
Belum ada pengembalian dana
Internal Memo
@tableconfig
@tableajax(route('admin.invoiceInternalMemo', ['invoiceId' => $model->id])) Nama Lender No. Va Lender Nilai Pendanaan Total Ujroh Ujroh Lender Gross Ujroh Duha Gross PPH 23% Lender Ujroh Lender Net Repayment ke Lender @endtableajax
@endif
Kembali ke Daftar   @if ($model->status === $constant::INVOICE_STATUS_VERIFICATION && checkPermission(\App\Util\AclConstant::INVOICE_UPDATE)) @endif
@if (checkPermission(\App\Util\AclConstant::INVOICE_UPDATE)) @if ($model->status === $constant::INVOICE_STATUS_VERIFICATION) @if ( (!checkPermission(\App\Util\AclConstant::INVOICE_CMO_ACCESS) && !in_array($model->approvalVerfication, [ $constant::INVOICE_STATUS_VERIFICATION_APPROVAL_LENDER, $constant::INVOICE_STATUS_VERIFICATION_APPROVAL_SCF ])) || ($model->approvalVerfication == $constant::INVOICE_STATUS_VERIFICATION_APPROVAL_COMMITTEE_CMO && checkPermission(\App\Util\AclConstant::INVOICE_CMO_ACCESS))) @endif @elseif($model->status === $constant::INVOICE_STATUS_CONFIRMATION) @elseif($model->status === $constant::INVOICE_STATUS_CONFIRMED) @if (!count($transaksiDanamon)) @endif @elseif($model->status === $constant::INVOICE_STATUS_ACTIVE) @endif @if (in_array($model->status, $constant::INVOICE_CANCELABLE_STATUS_LIST)) @endif @endif
@if ($model->status === $constant::INVOICE_STATUS_VERIFICATION) @elseif($model->status == $constant::INVOICE_STATUS_CONFIRMATION) @elseif($model->status == $constant::INVOICE_STATUS_CONFIRMED) @elseif($model->status === $constant::INVOICE_STATUS_ACTIVE) @elseif($model->status === $constant::INVOICE_STATUS_COMPLETED) @endif @if ($model->status === $constant::INVOICE_STATUS_ACTIVE || $model->status === $constant::INVOICE_STATUS_COMPLETED) @endif @if (in_array($model->status, $constant::INVOICE_CANCELABLE_STATUS_LIST)) @endif @endsection @section('jsCustom') @endsection