import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout'; import { Head, Link, useForm } from '@inertiajs/react'; import { Button } from '@/Components/ui/button'; import { ArrowLeft, Save } from 'lucide-react'; import { PageProps } from '@/types'; import { FormEvent } from 'react'; import { ProjectForm, ProjectFormData } from '../../Components/ProjectForm'; interface Employee { id: number; ulid: string; name: string } interface Props extends PageProps { employees: Employee[]; } export default function Create({ employees }: Props) { const { data, setData, post, processing, errors } = useForm({ name: '', client_name: '', location: '', start_date: '', target_end_date: '', contract_duration: '', description: '', pm_id: '', contract_value: '', }); const handleSubmit = (e: FormEvent) => { e.preventDefault(); post(route('projects.store')); }; return (

Create Project

} >
); }