import React from 'react' import { Head, Link } from '@inertiajs/react' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import { isEmpty } from 'lodash' import { formatIDDate, formatIDR } from '@/utils' export default function Detail(props) { const { paylater, deposit } = props return (
{paylater.description}
{isEmpty(deposit) === true && ( {isEmpty(paylater.next_payment) === false && ( )}
Customer : {paylater.customer.name}
Jumlah : {paylater.amount}
Status : {paylater.status_text.text}
Tanggal : {paylater.format_created_at}
Pembayaran Hutang : {isEmpty( paylater.not_fullpayment_reason ) === false ? (

Sebagian

) : (

Penuh

)}
Tanggal Pemenuhan : {formatIDDate( paylater.next_payment )}
)} {isEmpty(deposit) === false && ( <> {deposit.account !== null && ( )} {deposit.deposit_location !== null && ( )} {isEmpty(deposit.editor) === false && ( )} {isEmpty( deposit.paylater.next_payment ) === false && ( )}
Customer : {deposit.customer.name}
Metode Pembayaran : {deposit.payment_channel}
Bank Akun : {deposit.account.name} ( {deposit.account.bank_name})
Lokasi Cash / Setor Tunai : { deposit.deposit_location .name }
Jumlah : {deposit.amount}
Admin Fee : Rp{' '} {formatIDR(+deposit.admin_fee)}
Status : {deposit.status.text}
Alasan Penolakan : {deposit.note}
Approver : {deposit.editor.name}
Tanggal : {deposit.format_created_at}
Pembayaran Hutang : {isEmpty( deposit.paylater .not_fullpayment_reason ) === false ? (

Sebagian

) : (

Penuh

)}
Tanggal Pemenuhan : {formatIDDate( deposit.paylater .next_payment )}
{isEmpty(deposit.image_prove_url) === false && ( )}
)}
) }