@extends('layouts.authorized', ['isVue' => true]) @inject('constant', '\App\Util\Constant') @section('headerCustom') @php $id = 0; if (!empty($model->getKey())) $id = $model->getKey(); $formUrl = $model->getUrlDetails(['id' => $id]); $cancelUrl = $model->getUrlIndex(); $language = ''; $title = 'Detail Transaksi'; $urlPrefix = strtolower(str_replace("/", "", Request::route()->getPrefix())); @endphp @endsection @section('content') @include('cms.form.errorbox')
{{ $model->transactionNumber }}
@if($model->status == $constant::TRANSACTION_STATUS_WRITE_OFF) {{-- --}} @endif @if (\Auth::isInvestorPic()) @endif
Status Transaksi {{ $constant::TRANSACTION_STATUS_LABELS[$model->status] }}
Status Repayment {{ $constant::TRANSACTION_REPAYMENT_STATUS_LABELS[$model->statusRepayment] }}
Status Pinjaman
Penyelesaian
Nominal Penyelesaian writeOff)) value="{{ $model->writeOff->outstandingAmount }}" @endif/>
Status Pembiayaan {{ $constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_LABELS[$model->investorPaymentStatus] }}

Rp. {{ getPriceNumber($model->subtotal) }}
@if(\Auth::isAdmin() && !empty($model->investorId) && checkPermission(\App\Util\AclConstant::TRANSACTION_UPDATE)) @if($model->investorPaymentStatus === $constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_PAID) Ubah menjadi {{ $constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_LABELS[$constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_UNPAID] }} @elseif($model->investorPaymentStatus === $constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_UNPAID) Ubah menjadi {{ $constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_LABELS[$constant::TRANSACTION_INVESTOR_PAYMENT_STATUS_PAID] }} @endif @if ($model->status == Constant::TRANSACTION_STATUS_ONGOING) Write Off Transaction @endif @endif
Nama @php $nameParts = explode(' ', empty($model->customerDetail->name) ? '' : $model->customerDetail->name); @endphp @foreach($nameParts as $namePart) {{ strtoupper(substr($namePart, 0, 1)) }} @endforeach
@if(\Auth::isAdmin())
Nama {{ @$model->customerDetail->name }}
No. Handphone {{ @$model->customerDetail->phone }}
E-mail {{ @$model->customerDetail->email }}
Status / Kualitas Pembiayaan {{ $constant::TRANSACTION_REPAYMENT_STATUS_LABELS[$model->statusRepayment] }}
@endif
@if(\Auth::isAdmin() || \Auth::isInvestorPic()) {{-- @endif @if(\Auth::isAdmin()) --}} @endif
User Dokumen Asli Dokumen Privy Dokumen TTD
Pemberi Pembiayaan Lihat Dokumen @if(!empty($model->privyInvestorDocumentToken)) Lihat di Privy @else - @endif @if($model->privyInvestorDocumentStatus == \App\Util\PrivyConstant::DOCUMENT_STATUS_COMPLETED) Lihat Dokumen @else - @endif
Penerima Pembiayaan Lihat Dokumen @if(!empty($model->privyDocumentToken)) Lihat di Privy @else - @endif @if($model->privyDocumentStatus == \App\Util\PrivyConstant::DOCUMENT_STATUS_COMPLETED) Lihat Dokumen @else - @endif
Detail Transaksi
{{ @$model->orderDate }}
{{ @$model->merchant->name }}
{{ $constant::CREDIT_APPLICATION_TYPE_LABELS[$model->type] }}
@if(\Auth::isAdmin())
@if(empty($model->filePurchaseOrder)) PO belum dibuat @else Lihat Dokumen @endif
@{{ attachment.name.length > 50 ? attachment.name.substr(0, 35) + '.....' + attachment.name.substr(-10) : attachment.name}}
@{{ attachment.name.length > 50 ? attachment.name.substr(0, 35) + '.....' + attachment.name.substr(-10) : attachment.name}}
{{ empty($model->rating) ? '-' : $model->rating }}
{{-- --}}
@endif

@foreach(@$model->transactionDetails as $item) @endforeach() @if ($model->type == \App\Util\Constant::CREDIT_APPLICATION_TYPE_TRAVEL) @else @endif
Nama Barang Jumlah Barang Harga
{{ $item->name }} {{ getPriceNumber($item->quantity) }} Rp. {{ getPriceNumber($item->value) }}
Urbun (Uang Muka) Rp. {{ getPriceNumber($model->downPaymentAmount) }}
Total Rp. {{ getPriceNumber($model->orderGrandTotal - $model->downPaymentAmount) }}
Total Rp. {{ getPriceNumber($model->orderGrandTotal) }}
Detail Pembayaran
{{ getPriceNumber($model->period) }} bulan
Rp. {{ getPriceNumber($model->marginAmount) }}
Rp. {{ \Auth::isAdmin() ? getPriceNumber($model->installmentAmount) : getPriceNumber($model->installmentBaseAmount + $model->installmentInvestorMarginAmount) }}
{{ @$constant::TRANSACTION_PAYMENT_TYPE_LABELS[$model->paymentType] }}
{{ number_format($model->marginRate, 2) }} %  

@if(\Auth::isAdmin()) @endif @if(!empty($model->downPaymentBilling)) @if($model->type == $constant::CREDIT_APPLICATION_TYPE_SHOPPING) @if(\Auth::isAdmin()) @endif @elseif($model->type == $constant::CREDIT_APPLICATION_TYPE_TRAVEL) @if(\Auth::isAdmin()) @endif @endif @else @endif()
Nomor Invoice Tanggal Pembayaran Jumlah TertagihNomor VAStatus
- - Rp. --{{ $constant::BILLING_STATUS_LABELS[@$model->downPaymentBilling->status] }}
{{ @$model->downPaymentBilling->bniEcollectionId }} {{ @$model->downPaymentBilling->paymentDate }} Rp. {{ getPriceNumber(@$model->downPaymentBilling->amount) }}{{ @$model->downPaymentBilling->vaNumber }}{{ $constant::BILLING_STATUS_LABELS[@$model->downPaymentBilling->status] }}
Belum ada down payment

@if(\Auth::isAdmin()) @endif @if(count($model->installmentBillings) > 0) @foreach(@$model->installmentBillings as $billing) @if(\Auth::isAdmin()) @endif @endforeach() @else @endif()
Angsuran ke- Nomor Invoice Tanggal Penagihan Jumlah Tertagih Tanggal PembayaranNomor VAStatus
{{ $billing->billingIndex }} {{ $billing->bniEcollectionId }} {{ $billing->dueDate }} Rp. {{ \Auth::isAdmin() ? getPriceNumber($billing->amount) : getPriceNumber($model->installmentBaseAmount + $model->installmentInvestorMarginAmount) }} {{ $billing->paymentDate }}{{ $billing->vaNumber }}{{ $constant::BILLING_STATUS_LABELS[@$billing->status] }}
Belum ada cicilan
 
@if(\Auth::isAdmin() && checkPermission(\App\Util\AclConstant::TRANSACTION_UPDATE)) @if($model->status == $constant::TRANSACTION_STATUS_VERIFICATION_STAFF)
{{-- --}}
@endif @endif
<{{-- div id="modal-update-grade" class="modal fade" role="dialog"> --}} @endsection @section('jsCustom') @endsection