add fields

This commit is contained in:
radhika587
2022-02-21 18:34:04 +05:30
parent 0578122fc3
commit 439fc4e002
6 changed files with 57 additions and 16 deletions

View File

@ -33,6 +33,18 @@ function get_customer_logo($company_id)
}
}
/**
* Get current customer page title
*
* @param $company_id
* @return string
*/
function get_customer_page_title($company_id)
{
if (\Storage::disk('local')->has('database_created')) {
return CompanySetting::getSetting('customer_portal_page_title', $company_id);
}
}
/**
* Get current admin portal logo
@ -94,15 +106,28 @@ function get_login_page_description()
}
/**
* Get admin document title
* Get admin page title
*
* @param $company_id
* @return string
*/
function get_admin_document_title()
function get_admin_page_title()
{
if (\Storage::disk('local')->has('database_created')) {
return Setting::getSetting('admin_document_title');
return Setting::getSetting('admin_page_title');
}
}
/**
* Get admin page title
*
* @param $company_id
* @return string
*/
function get_copyright_text()
{
if (\Storage::disk('local')->has('database_created')) {
return Setting::getSetting('copyright_text');
}
}