<!-- =========================================================
SUBSCRIPTIONS
========================================================= -->

<li class="nav-item has-treeview <?=
    (
        strpos($_SERVER['REQUEST_URI'], '/subscriptions/') !== false
    ) ? 'menu-open' : '';
?>">

    <a href="#" class="nav-link <?=
        (
            strpos($_SERVER['REQUEST_URI'], '/subscriptions/') !== false
        ) ? 'active' : '';
    ?>">

        <i class="nav-icon fas fa-crown"></i>

        <p>

            Subscriptions

            <i class="right fas fa-angle-left"></i>

        </p>

    </a>

    <ul class="nav nav-treeview">

        <!-- PLANS -->

        <li class="nav-item">

            <a
                href="<?php echo WEB_ROOT; ?>super_admin/subscriptions/plans.php"
                class="nav-link <?= basename($_SERVER['PHP_SELF']) == 'plans.php' ? 'active' : ''; ?>"
            >

                <i class="far fa-circle nav-icon"></i>

                <p>

                    Subscription Plans

                </p>

            </a>

        </li>

        <!-- CREATE PLAN -->

        <li class="nav-item">

            <a
                href="<?php echo WEB_ROOT; ?>super_admin/subscriptions/create_plan.php"
                class="nav-link <?= basename($_SERVER['PHP_SELF']) == 'create_plan.php' ? 'active' : ''; ?>"
            >

                <i class="far fa-circle nav-icon"></i>

                <p>

                    Create Plan

                </p>

            </a>

        </li>

        <!-- SUBSCRIPTIONS -->

        <li class="nav-item">

            <a
                href="<?php echo WEB_ROOT; ?>super_admin/subscriptions/subscriptions.php"
                class="nav-link <?= basename($_SERVER['PHP_SELF']) == 'subscriptions.php' ? 'active' : ''; ?>"
            >

                <i class="far fa-circle nav-icon"></i>

                <p>

                    School Subscriptions

                </p>

            </a>

        </li>

        <!-- ASSIGN -->

        <li class="nav-item">

            <a
                href="<?php echo WEB_ROOT; ?>super_admin/subscriptions/assign_subscription.php"
                class="nav-link <?= basename($_SERVER['PHP_SELF']) == 'assign_subscription.php' ? 'active' : ''; ?>"
            >

                <i class="far fa-circle nav-icon"></i>

                <p>

                    Assign Subscription

                </p>

            </a>

        </li>

    </ul>

</li>