function Filter_Workroom()
    {
        $arg = array('author' => get_current_user_id(), 'collaboration_status' => $_POST['Type']);
        $workrooms = get_workroom($arg);
        $workrooms_list = array();
        foreach ($workrooms as $workroom) {
            $params = $workroom->ID;
            $workroom_leader = get_post_field('post_author', get_main_item_id_by_workroom_id($params));
            if (in_array($params, $workrooms_list)) {
                continue 1;
            }
            $workrooms_list[] = $params;
            ?>
						   <tr class="odd first inprogress" data-workroom-id="<?php 
            echo $params;
            ?>
">
									<td class="workrooominformation">
                                            <div class="workroomitemtitle">
                                                <a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/message')) . $params;
            ?>
">
            
													<?php 
            echo get_the_title($params);
            ?>
                                               
                                                </a>
                                            </div>
                                            <div class="workroominfoadditional">
                                           	 <?php 
            echo get_collaboration_status_by_main_item_id($params);
            ?>
 <?php 
            echo get_the_date('Y-m-d', $params);
            ?>
 | Workroom Lead: 
                                            	<a href="javascript:void(0);"><?php 
            echo $workroom_leader == get_current_user_id() ? 'You' : get_the_author_meta('display_name', $workroom_leader);
            ?>
</a>
                                        </div>
									</td>
									<td class="wrlistitemactions">
										<div class="wrlistitemactionsholder">
											<div class="wrlistitemactionstxt">
												Actions
											</div>
											<ul class="writemactionslist">
												<li class="first"><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/message')) . $params;
            ?>
">Messages</a></li>
												<li><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/files')) . $params;
            ?>
">Files</a></li>
												<li><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/team-members')) . $params;
            ?>
">Team Members</a></li>
												<li><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/team-commission')) . $params;
            ?>
">Commission</a></li>
												<li><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/workroom-alerts')) . $params;
            ?>
">Alerts</a></li>
												<!--<li><a href="<?php 
            echo get_permalink(get_page_by_path('collaboration/workroom/report-problem')) . $params;
            ?>
">Report a Problem</a></li>-->
                                                 <?php 
            if (get_post_field('post_author', $params) == get_current_user_id()) {
                ?>
                                                <li class="last"><a href="<?php 
                echo get_permalink(get_page_by_path('collaboration/workroom/add-workroom')) . $params;
                ?>
">Edit Workroom</a></li>
                                                <?php 
            }
            if (get_post_field('post_author', $params) == get_current_user_id()) {
                ?>
                                                <li><a href="JavaScript:void(0)" onClick="Edd.collaboration.Workroom.Delete('<?php 
                echo $params;
                ?>
')">Delete Workroom</a></li>
												<?php 
            }
            ?>
											</ul>
										</div>
									</td>
								</tr>
                                
							<?php 
        }
    }
<div class="wrap">
    <h2>Workrooms</h2>
    
    <?php 
$arg = array('collaboration_status' => get_transient('Filter_By'));
$workrooms = get_workroom($arg);
$workrooms_list = array();
$data = array();
foreach ($workrooms as $value) {
    if (in_array($params, $workrooms_list)) {
        continue 1;
    }
    $workrooms_list[] = $value->ID;
    $ass_id = get_post_meta($value->ID, 'Unfinished_Item_ID', true);
    $ass_leader_id = get_post_field('post_author', get_parent_item($ass_id));
    $ass_leader = get_the_author_meta('first_name', $ass_leader_id) . ' ' . get_the_author_meta('last_name', $ass_leader_id);
    $status = get_collaboration_status_by_main_item_id($value->ID);
    $data[] = array('ID' => $value->ID, 'title' => $value->post_title, 'leader' => get_the_author_meta('display_name', $value->post_author), 'item' => get_the_title(get_post_meta($value->ID, 'Unfinished_Item_ID', true)), 'status' => $status);
}
$Workroom_List_Table = new Workroom_List_Table();
$Workroom_List_Table->data = $data;
$Workroom_List_Table->prepare_items();
//$Workroom_List_Table->display();
//$Workroom_List_Table->display_rows_or_placeholder();
//$Workroom_List_Table->search_box('mmmmm','llkjk');
extract($Workroom_List_Table->_args);
//$Workroom_List_Table->display_tablenav( 'top' );
?>
    <form method="POST" action="">
    <?php