<?php
/**
 * Status filter view.
 *
 * @package DhlPolska\Admin\Shipments\Filter
 *
 * @var string               $value
 * @var array<string, string> $statuses
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}


?>
<label class="screen-reader-text" for="dhl_polska_shipment_status"><?php esc_html_e( 'Status', 'dhl-polska' ); ?></label>
<select name="status" id="dhl_polska_shipment_status">
	<option value=""><?php esc_html_e( 'Wszystkie statusy', 'dhl-polska' ); ?></option>
	<?php foreach ( $statuses as $status_key => $status_label ) : ?>
		<option value="<?php echo esc_attr( $status_key ); ?>"<?php echo selected( $value, $status_key, false ); ?>>
			<?php echo esc_html( $status_label ); ?>
		</option>
	<?php endforeach; ?>
</select>
