import React from 'react' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import FormInput from '@/Components/FormInput' import FormFile from '@/Components/FormFile' import Button from '@/Components/Button' import CustomerSelectionInput from '../Customer/SelectionInput' import { Head, useForm } from '@inertiajs/react' import { MUST_VERIFIED } from '@/constant' export default function FormTenor(props) { const { data, setData, post, processing, errors } = useForm({ customer_id: null, day_deadline: '', file_agreement: null, }) const handleOnChange = (event) => { setData( event.target.name, event.target.type === 'checkbox' ? event.target.checked ? 1 : 0 : event.target.value ) } const handleSubmit = () => { post(route('paylater.update.tenor')) } return (
Tambah Tenor
setData('customer_id', id)} placeholder="pilih customer" filter={{ levels: MUST_VERIFIED }} />
setData('file_agreement', e.target.files[0]) } error={errors.file_agreement} />
) }