import React, { useState } from 'react';
import { Head, Link, router } from '@inertiajs/react';
import EmployerLayout from '@/Layouts/EmployerLayout';
import {
ArrowLeft,
Calendar,
MapPin,
DollarSign,
Send,
CheckCircle2,
ShieldCheck,
Clock
} from 'lucide-react';
export default function Confirm({ worker }) {
const [startDate, setStartDate] = useState('');
const [location, setLocation] = useState('');
const [offeredSalary, setOfferedSalary] = useState(worker.salary);
const handleSubmit = (e) => {
e.preventDefault();
// Perform a real POST submission to create the Job Offer in DB
router.post(`/employer/workers/${worker.id}/hire`, {
work_date: startDate,
location: location,
salary: offeredSalary,
notes: 'Hiring offer dispatched from employer panel.'
});
};
return (
Enter the employment details below