diff --git a/app/Helpers/utility_helper.php b/app/Helpers/utility_helper.php index 9130a991..034de8ce 100755 --- a/app/Helpers/utility_helper.php +++ b/app/Helpers/utility_helper.php @@ -886,3 +886,15 @@ if (!function_exists('removeNumberFormatting')) { return (float) str_replace(',', '', trim($number)); } } + +if (!function_exists('formatKey')) { + function formatKey($key, $len = 3) + { + $words = explode('_', $key); + $formatted = array_map(function ($word) use ($len) { + return strlen($word) < $len ? strtoupper($word) : ucfirst(strtolower($word)); + }, $words); + return implode(' ', $formatted); + } +} + diff --git a/app/Models/InsurerBranchModel.php b/app/Models/InsurerBranchModel.php index a976e478..2cd28703 100755 --- a/app/Models/InsurerBranchModel.php +++ b/app/Models/InsurerBranchModel.php @@ -27,7 +27,7 @@ class InsurerBranchModel extends Model public function getInsurerBranchesWithInsurerNames() { - $query = $this->select('insurer_branch.*, I.short_name as insurer_name') + $query = $this->select('insurer_branch.*, I.short_name as insurer_name, I.category') ->join('insurers I', 'insurer_branch.insurer_id = I.id', 'left') ->find(); return $query; diff --git a/app/Views/leads_dash.php b/app/Views/leads_dash.php index fe6062cb..4fec7de9 100644 --- a/app/Views/leads_dash.php +++ b/app/Views/leads_dash.php @@ -226,7 +226,7 @@ $isActive = get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID, user_ $bgColor = $colorShades[$colorSetIndex][$shadeIndex]; ?> 20 ? substr($formattedStatus, 0, 15) . '...' : $formattedStatus; $showTooltip = strlen($formattedStatus) > 20; ?>