<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>

<style>
    table.wp-list-table .column-thumb {
        width: 52px;
        text-align: center;
        white-space: nowrap;
    }

    table.wp-list-table td.column-thumb img {
        margin: 0;
        width: auto;
        height: auto;
        max-width: 40px;
        max-height: 40px;
        vertical-align: middle;
    }

</style>

<div class="wrap">
	<h2><?php esc_html_e( 'Products', 'wiaas' ); ?>
		<?php
		if ( ! empty( $_REQUEST['s'] ) ) {
			echo '<span class="subtitle">' . esc_html__( 'Search results for', 'wiaas' ) . ' "' . sanitize_text_field( $_REQUEST['s'] ) . '"</span>';
		}
		?>
	</h2>

	<ul class="subsubsub"><?php $packages_list->views(); ?></ul>

	<form id="wiaas_products" action="" method="get">
		<input type="hidden" name="page" value="wiaas-cl-packages" />
		<?php $packages_list->search_box( __( 'Search Products', 'wiaas' ), 'wiaas_packages_search_id' ); ?>
		<?php $packages_list->display(); ?>
	</form>

</div>