import React, { useEffect, Suspense } from 'react' import { isEmpty } from 'lodash' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import FormInput from '@/Components/FormInput' import Button from '@/Components/Button' import { Head, useForm } from '@inertiajs/react' import FormFile from '@/Components/FormFile' import { formatIDR } from '@/utils' export default function Detail(props) { const { sale } = props return (
Customer : {sale.customer.name}
Metode Pembayaran : {sale.payed_with}
Total : {formatIDR(sale.amount)}
Voucher
{sale.items.map((item, index) => ( ))}
No Lokasi Username Password Profile Comment Kuota
{index + 1} {item.voucher.location.name} {item.voucher.username} {item.voucher.password} {item.voucher.profile} {item.voucher.comment} {item.voucher.display_quota}
) }