import React, { useState } from 'react'; import { useForm, Head, Link } from '@inertiajs/react'; import { CheckCircle, Camera, Eye, EyeOff, X, Loader2, FileText, AlertCircle, CreditCard, ShieldCheck, Lock, User, Mail, Phone as PhoneIcon, ArrowRight, ArrowLeft, Check, Globe, ChevronLeft, ChevronRight, Zap, Shield, Trophy } from 'lucide-react'; export default function EmployerRegister() { const [step, setStep] = useState(1); const { data, setData, post, processing, errors } = useForm({ name: '', email: '', phone: '', password: '', password_confirmation: '', emirates_id_front: null, emirates_id_back: null, selected_plan: 'premium', card_number: '', expiry: '', cvc: '', source: 'mobile', }); const [showPassword, setShowPassword] = useState(false); const [frontFileName, setFrontFileName] = useState(null); const [backFileName, setBackFileName] = useState(null); const plans = [ { id: 'basic', name: 'Basic Search', price: '99', icon: Zap, color: 'text-blue-500 bg-blue-50', features: ['Browse 500+ workers', '10 Shortlists'] }, { id: 'premium', name: 'Premium Pass', price: '199', icon: Shield, color: 'text-[#185FA5] bg-blue-50', popular: true, features: ['Unlimited lists', 'Direct Messaging'] }, { id: 'vip', name: 'VIP Concierge', price: '499', icon: Trophy, color: 'text-amber-500 bg-amber-50', features: ['Assigned Manager', 'Full Warranty'] }, ]; const nextStep = () => setStep(prev => prev + 1); const prevStep = () => setStep(prev => prev - 1); const handleFileChange = (e, field) => { const file = e.target.files[0]; if (file) { setData(field, file); const sizeMb = (file.size / (1024 * 1024)).toFixed(1); if (field === 'emirates_id_front') { setFrontFileName(`${file.name} (${sizeMb}MB)`); } else { setBackFileName(`${file.name} (${sizeMb}MB)`); } } }; const removeFile = (field) => { setData(field, null); if (field === 'emirates_id_front') { setFrontFileName(null); } else { setBackFileName(null); } }; const handleSubmit = (e) => { e.preventDefault(); post('/employer/register'); }; return (
{step === 1 && "Start your professional hiring journey."} {step === 2 && "Verified ID is mandatory for compliance."} {step === 3 && "Select a package that fits your needs."} {step === 4 && "Secure payment via encrypted gateway."}
Already joined? Sign In