FIX_Dashboard
This commit is contained in:
parent
217ada5156
commit
942ba8b376
@ -185,6 +185,27 @@
|
||||
|
||||
<?php if(in_array(get_role_id(), [1,2,3,4,5]) || (in_array(ENROLLMENT_TEAM_ID, user_team()) || in_array(CLAIMS_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(BUSINESS_TEAM_ID, user_team()))) { ?>
|
||||
|
||||
<?php
|
||||
// Exactly one tab-pane must be active initially; claims_dash/leads_dash used to each set
|
||||
// $isActive so dual-team staff saw both panes (Bootstrap shows every .active pane).
|
||||
$dash_show_pending_nav = in_array(get_role_id(), [1, 2, 3, 5]);
|
||||
$dash_show_claims_nav = (get_role_id() == STAFF_ROLE_ID && in_array(CLAIMS_TEAM_ID, user_team())) || in_array(get_role_id(), [1, 5]);
|
||||
$dash_show_leads_nav = (get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID, user_team())) || in_array(get_role_id(), [1, 5]);
|
||||
|
||||
$dash_default_pane = null;
|
||||
if ($dash_show_pending_nav) {
|
||||
$dash_default_pane = 'pending';
|
||||
} elseif ($dash_show_claims_nav) {
|
||||
$dash_default_pane = 'claims';
|
||||
} elseif ($dash_show_leads_nav) {
|
||||
$dash_default_pane = 'leads';
|
||||
}
|
||||
|
||||
$dash_pending_pane_active = ($dash_default_pane === 'pending') ? 'active show' : '';
|
||||
$dash_claims_pane_active = ($dash_default_pane === 'claims') ? 'active show' : '';
|
||||
$dash_leads_pane_active = ($dash_default_pane === 'leads') ? 'active show' : '';
|
||||
?>
|
||||
|
||||
<!-- <div class="row" id="client_add"> -->
|
||||
<div class="row" id="client_add" style="margin-top:12px!important">
|
||||
<div class="col-12">
|
||||
@ -222,9 +243,6 @@
|
||||
|
||||
<?php } ?>
|
||||
<?php if ((get_role_id() == STAFF_ROLE_ID && in_array(CLAIMS_TEAM_ID,user_team())) || in_array(get_role_id(),[1,5])) :?>
|
||||
<?php
|
||||
$isActive = get_role_id() == STAFF_ROLE_ID && in_array(CLAIMS_TEAM_ID,user_team()) ? 'active show' : '';
|
||||
?>
|
||||
<li class="nav-item d-flex justify-content-center align-items-center">
|
||||
<a href="#claims-dash-tab" data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-1 dash-anchor nav-dash" id="claims_tab">
|
||||
<img src="<?= base_url() . "public"; ?>/assets/images/inactive_claims.png" alt="Logo" height="14" class="inactive_claims">
|
||||
@ -237,9 +255,9 @@
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ((get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID,user_team())) || in_array(get_role_id(),[1,5])) :?>
|
||||
<?php
|
||||
$isActive = get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID,user_team()) ? 'active show' : '';
|
||||
?>
|
||||
<!-- <?php
|
||||
// $isActive = get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID,user_team()) ? 'active show' : '';
|
||||
?> -->
|
||||
<li class="nav-item d-flex justify-content-center align-items-center ">
|
||||
<a href="#leads-dash-tab " data-toggle="tab" aria-expanded="true" class="nav-link px-3 py-1 dash-anchor nav-dash" id="leads_tab" >
|
||||
<img src="<?= base_url() . "public"; ?>/assets/images/inactive_leads_and_bds_renewal.png" alt="Logo" height="14" class="inactive_leads">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user