<?php 
    $user_id = $_SESSION['User']['id'];
    $sql77 = "SELECT * FROM tbl_users WHERE id='$user_id'";
    $row77 = getRecord($sql77);
    $PackageStatus = $row77['PackageStatus'];
    $CustName = $row77['Fname']." ".$row77['Lname'];
    $CustPhone = $row77['Phone'];
    $CustEmail = $row77['EmailId'];
    $Course = $row77['Course'];
    //$BatchId = $row77['BatchId'];
    $CollegeId = $row77['CollegeId'];
    $CourseType = $row77['CourseType'];

    if($CourseType == 'Free'){
     $BatchId = $row77['BatchId']; 
     $DeptId =   $row77['DeptId']; 
     $CourseId = $row77['CourseId']; 
    }
    else{    
    $DeptId = "";
    $sql88 = "SELECT * FROM tbl_allocate_courses WHERE UserId='$user_id'";
    $row88 = getList($sql88);
    foreach($row88 as $result){
        $DeptId2.=$result['DeptId'].",";
        $BatchId2.= $result['BatchId'].",";
        $CourseId2.=$result['CourseId'].",";
    }
    $DeptId = rtrim($DeptId2,',');
    $BatchId = rtrim($BatchId2,',');
    $CourseId = rtrim($CourseId2,',');
    //echo $DeptId;
}
//echo $BatchId;
$CourseId = $_SESSION['CourseId'];
            $sql66 = "SELECT Type FROM tbl_courses WHERE id='$CourseId'";
            $row66 = getRecord($sql66);
            $Type = $row66['Type'];
 ?>
        <header class="header">
            <div class="row">
                <div class="col-auto px-0">
                    <button class="btn btn-40 btn-link back-btn" type="button">
                        <span class="material-icons">keyboard_arrow_left</span>
                    </button>
                </div>
                <div class="text-left col align-self-center">
                    <a class="navbar-brand" href="#">
                        <h5 class="mb-0"><?php echo $PageName; ?></h5>
                    </a>
                      
                </div>
                <div class="ml-auto col-auto">
                  
               
                    <a href="profile.php" class="avatar avatar-30 shadow-sm rounded-circle ml-2">
                        <figure class="m-0">
                              <i class="material-icons" style="width: 30px;height: 30px;color: white;padding-top: 2px;">account_circle</i>
                        </figure>
                    </a>
                </div>
            </div>
        </header>
