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

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


?>
<label class="screen-reader-text" for="dhl_polska_shipment_service"><?php esc_html_e( 'Usługa DHL', 'dhl-polska' ); ?></label>
<select name="service" id="dhl_polska_shipment_service">
	<option value=""><?php esc_html_e( 'Wszystkie usługi', 'dhl-polska' ); ?></option>
	<?php foreach ( $services as $service_key => $service_label ) : ?>
		<option value="<?php echo esc_attr( $service_key ); ?>"<?php echo selected( $value, $service_key, false ); ?>>
			<?php echo esc_html( $service_label ); ?>
		</option>
	<?php endforeach; ?>
</select>
