import React, { useState } from 'react';
import { Head, useForm } from '@inertiajs/react';
import EmployerLayout from '../../Layouts/EmployerLayout';
import {
User,
CheckCircle2,
Save,
Building2,
Lock,
Bell,
ShieldCheck,
Mail,
Phone,
Globe,
CreditCard,
ChevronRight,
Camera
} from 'lucide-react';
export default function Profile({ employerProfile }) {
const { data: profile, setData: setProfile, post, processing, errors } = useForm({
name: employerProfile?.name || '',
company_name: employerProfile?.company_name || '',
email: employerProfile?.email || '',
phone: employerProfile?.phone || '',
language: employerProfile?.language || 'English',
notifications: employerProfile?.notifications ?? true,
current_password: '',
new_password: '',
new_password_confirmation: '',
});
const [activeTab, setActiveTab] = useState('personal');
const [saved, setSaved] = useState(false);
const handleSave = (e) => {
e.preventDefault();
post('/employer/profile/update', {
preserveScroll: true,
onSuccess: () => {
setSaved(true);
setTimeout(() => setSaved(false), 3000);
}
});
};
const tabs = [
{ id: 'personal', label: 'Personal Information', icon: User },
{ id: 'company', label: 'Company & Verification', icon: Building2 },
{ id: 'security', label: 'Security & Password', icon: Lock },
{ id: 'billing', label: 'Billing & History', icon: CreditCard },
{ id: 'notifications', label: 'Notification Settings', icon: Bell },
];
return (
{profile.company_name}