import React from 'react'; import { Head, Link, useForm } from '@inertiajs/react'; import EmployerLayout from '../../../Layouts/EmployerLayout'; import { useTranslation } from '../../../lib/LanguageContext'; import { LifeBuoy, ArrowLeft, AlertTriangle, CheckCircle } from 'lucide-react'; export default function Create({ reasons = [] }) { const { t } = useTranslation(); const { data, setData, post, processing, errors } = useForm({ reason_id: '', subject: '', description: '', priority: 'medium', }); const handleSubmit = (e) => { e.preventDefault(); post('/employer/support/create'); }; return (
{/* Back button */} {t('back_to_support', 'Back to Help & Support')} {/* Form Card */}

{t('open_support_case', 'Open a Support Case')}

{t('open_support_case_desc', 'Please provide detailed info to help our engineering team solve it fast.')}

{/* Support Reason */}
{errors.reason_id && (

{errors.reason_id}

)}
{/* Subject */}
setData('subject', e.target.value)} className={`w-full p-3 border rounded-xl bg-slate-50/50 text-slate-800 outline-none focus:bg-white focus:border-[#185FA5] transition-all ${ errors.subject ? 'border-red-400 bg-red-50/20' : 'border-slate-200' }`} required /> {errors.subject && (

{errors.subject}

)}
{/* Priority */}
{/* Description */}