<?php

$isEpicVelocity = false;
$isSuperRTG = false;

?>
<style>
    ul.left-menu li.active{
        background-color: #ddd;
    }
</style>
<?php
$isNotEmptyform = false; 
//pr($allForms);
//if(!empty($allForms)){
//
//    foreach ($allForms as $key => $category){
//
//        if(!empty($category['name']) && !empty($category['forms'])){
//            if(isset($category['forms'][SERTG_VELOCITY_FORM_ID]['package_id']) && $category['forms'][SERTG_VELOCITY_FORM_ID]['package_id'] == SERTG_PACKAGE_ID){
//                $isSuperRTG = true;
//                continue;
//            }else if(isset($category['forms'][EPIC_VELOCITY_FORM_ID]['package_id']) && $category['forms'][EPIC_VELOCITY_FORM_ID]['package_id'] == EPIC_VELOCITY_PACKAGE_ID){
//                $isEpicVelocity = true;
//                continue;
//            }else{
//                $isNotEmptyform = true;
//            }
//
//        }
//    }
//
//}
//pr($allForms);exit;
?>


<!--<div class="col-sm-3 col-xs-12">-->
<!--    --><?php //
//    if($isNotEmptyform){
//    if(!empty($allForms)): ?>
<!--        <div id="first-sidebar" class="left-widget"  style="background: #242424;font-size:20px; color:#fff; padding: 10px 10px; cursor:pointer;"><strong>R.T.G LETTER GENERATOR</strong></div>-->
<!--    --><?php //endif; ?>
<!--    <div id="my-sidebar1" class="collapse">-->
<!--        <div class="left-sidebar">-->
<!--        --><?php //if(!empty($allForms)): ?>
<!--            --><?php
//
//            foreach ($allForms as $key => $category) :  ?>
<!--                --><?php //if(!empty($category['name']) && !empty($category['forms'])): ?>
<!--                    --><?php
//
//                    if(isset($category['forms'][SERTG_VELOCITY_FORM_ID]['package_id']) && $category['forms'][SERTG_VELOCITY_FORM_ID]['package_id'] == SERTG_PACKAGE_ID){
//                $isSuperRTG = true;
//                continue;
//            }
//                    if(isset($category['forms'][EPIC_VELOCITY_FORM_ID]['package_id']) && $category['forms'][EPIC_VELOCITY_FORM_ID]['package_id'] == EPIC_VELOCITY_PACKAGE_ID){
//                $isEpicVelocity = true;
//                continue;
//            }
//
//                    ?>
<!--            <div class="left-widget">-->
<!--                <!-- <h2 --><?php //echo (!empty($category['forms']))? "": 'class="noChild"'; ?><!-- data-toggle="collapse" data-target="#demo--><?php //echo $key; ?><!--"> -->-->
<!--                <h2 --><?php //echo (!empty($category['forms']))? ' data-toggle="collapse" data-target="#demo'.$key.'"' : 'class="noChild"'; ?><!-- id="lftMenu--><?php //echo $key; ?><!--" >--><?php //echo $category['name']; ?><!--</h2>-->
<!--                        --><?php //if(!empty($category['forms'])): ?>
<!--                <div id="demo--><?php //echo $key; ?><!--" class="collapse">-->
<!--                    <ul class="left-menu">-->
<!--                                    --><?php //foreach ($category['forms'] as $fkey => $form) : ?>
<!---->
<!--                        <li class="--><?php //echo ($form_id == $form['form_id']) ? "active":""; ?><!--">-->
<!--                            <a class="snglForm" href="--><?php //echo $base_url; ?><!--dashboard/form/--><?php //echo $form['form_id']; ?><!--" data-category-id="--><?php //echo $form['category_id']; ?><!--" title="--><?php //echo $form['form_short_name']; ?><!--">-->
<!--                                <i class="fa fa-angle-double-right"></i> --><?php //echo $form['form_short_name']; ?>
<!--                            </a>-->
<!--                        </li>-->
<!---->
<!--                                    --><?php
//
//                                    endforeach; ?>
<!--                    </ul>-->
<!--                </div>-->
<!--                        --><?php //endif; ?>
<!--            </div>-->
<!--                --><?php
//
//                endif; ?>
<!--            --><?php //endforeach; ?>
<!--        --><?php //
//        endif;
//
//    ?>
<!--        </div>-->
<!--    </div>-->
<!--    --><?php //} ?>
<!---->
<!--        --><?php //if(!empty($settingData['left_menu_static_title'])): ?>
<!--            <!--<div style="font-size:20px; color:#fff; padding-bottom:15px;"><strong>--><?php //echo $settingData['left_menu_static_title'];?><!--</strong></div>-->-->
<!--        --><?php //endif; ?>
<!--    <div class="left-sidebar">-->
<!--            --><?php //if(isset($allStaticForms) && !empty($allStaticForms)){ ?>
<!--            --><?php //foreach ($allStaticForms as $key => $category) : ?>
<!--                --><?php //if(!empty($category['name'])): ?>
<!--                --><?php //endif; ?>
<!--            --><?php //endforeach;} ?>
<!---->
<!---->
<!--    </div>-->
<!--    --><?php //if($isSuperRTG){  ?>
<!--        --><?php //echo $this->element('velocity_super_rtg_links'); ?>
<!--    --><?php //} ?>
<!--    --><?php //if(!$this->Common->isEmployeeAsAdmin()){ ?>
<!--        --><?php //echo $this->element('velocity_sidebar_link');?>
<!--    --><?php //} ?>
<!---->
<!---->
<!---->
<!--    --><?php //if($isEpicVelocity && !$this->Common->isEmployeeSidebarMaxWidth()){ ?>
<!--        -->
<!--        --><?php //echo $this->element('epicvelocity_links'); ?>
<!--    -->
<!--    --><?php //} ?>
<!--    -->
<!-- --><?php //if($_SESSION['hasEpicVelocity'] || $_SESSION['hasVelocity'] || $_SESSION['hasLS_Fax_Rtg_user']){  ?>
<!--    --><?php //echo $this->element('automation_sidebar_links'); ?>
<!--     --><?php //}  ?><!-- -->
<!--<a href="--><?php //echo $this->Url->build(["controller" => 'Uploadhtml', "action" => "index"]); ?><!--" class="btn btn-block btn-orange large-text">Upload Credit Report</a>        -->
<!--</div>-->
