v6 update

This commit is contained in:
Mohit Panjwani
2022-01-10 16:06:17 +05:30
parent b770e6277f
commit bdea879273
722 changed files with 19047 additions and 9186 deletions

View File

@@ -3,8 +3,57 @@
use Crater\Models\CompanySetting;
use Crater\Models\Currency;
use Crater\Models\CustomField;
use Crater\Models\Setting;
use Illuminate\Support\Str;
/**
* Get current customer theme
*
* @param $company_id
* @return string
*/
function get_customer_portal_theme($company_id)
{
if (\Storage::disk('local')->has('database_created')) {
return CompanySetting::getSetting('customer_portal_theme', $company_id);
}
}
/**
* Get current customer logo
*
* @param $company_id
* @return string
*/
function get_customer_logo($company_id)
{
if (\Storage::disk('local')->has('database_created')) {
return CompanySetting::getSetting('customer_portal_logo', $company_id);
}
}
/**
* Get current admin theme
*
* @return string
*/
function get_admin_portal_theme()
{
if (\Storage::disk('local')->has('database_created')) {
$setting = Setting::getSetting('admin_portal_theme');
if ($setting) {
return $setting;
}
return 'crater';
}
return 'crater';
}
/**
* Set Active Path
*