mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
add fields
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user