@php $title = $title ?? 'Login - Lakhsman Wellness'; $heading = $heading ?? 'Login'; $subheading = $subheading ?? 'Access your dashboard securely.'; $formAction = $formAction ?? route('auth.login.submit'); $registerLink = $registerLink ?? route('register.user'); $expectedRole = $expectedRole ?? null; $role = $expectedRole ?: 'user'; $isFranchise = $role === 'franchise'; $isAdmin = $role === 'admin'; $brandMain = $isFranchise ? '#7c3aed' : ($isAdmin ? '#0f172a' : '#4f46e5'); $brandAccent = $isFranchise ? '#db2777' : ($isAdmin ? '#1d4ed8' : '#06b6d4'); $roleLabel = $isFranchise ? 'Franchise' : ($isAdmin ? 'Admin' : 'Member'); $companyName = (string) setting('company_name', 'Lakhsman Wellness Private Limited'); $companyPhone = (string) setting('company_phone', '8234673299'); $companyEmail = (string) setting('company_email', 'hy@lakhsmanwelleness.in'); $benefits = $isFranchise ? ['Track stock, sales, and commission in one dashboard.', 'Manage customers, invoices, and payout requests.', 'Receive real-time franchise operations support.'] : ($isAdmin ? ['Monitor ledger, payouts, and cron health centrally.', 'Control member, franchise, and compliance modules.', 'Run repair tools and performance snapshots safely.'] : ['View wallet, team tree, and daily income updates.', 'Manage orders, withdrawals, and KYC status securely.', 'Access member training, support, and legal resources.']); @endphp