${p.id === subData.plan.id ? `
${t('billing.current')}
` : ''}
${p.display_name}
${p.price_monthly > 0 ? `$${p.price_monthly}${t('billing.per_month')} ` : t('billing.free')}
${p.max_devices === -1 ? t('billing.unlimited') : p.max_devices} ${t('billing.devices_lc')}
${p.max_storage_mb === -1 ? t('billing.unlimited') : (p.max_storage_mb >= 1024 ? (p.max_storage_mb/1024) + ' GB' : p.max_storage_mb + ' MB')} ${t('billing.storage_lc')}
${p.remote_control ? '✓' : '✗'} ${t('billing.feat.remote_control')}
${p.remote_url ? '✓' : '✗'} ${t('billing.feat.remote_urls')}
${p.priority_support ? '✓' : '✗'} ${t('billing.feat.priority_support')}
${p.price_yearly > 0 ? `
${t('billing.yearly_save', { price: p.price_yearly, pct: Math.round((1 - p.price_yearly / (p.price_monthly * 12)) * 100) })}
` : ''}
${!subData.self_hosted && p.price_monthly > 0 && p.id !== subData.plan.id ? `
${t('billing.monthly')}
${p.price_yearly > 0 ? `${t('billing.yearly')} ` : ''}
` : ''}
${!subData.self_hosted && p.id === subData.plan.id && subData.subscription?.stripe_subscription_id ? `
${t('billing.manage_subscription')}
` : ''}