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 (
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 )} |
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 )} |