'; foreach ( array( 'pending', 'booked', 'complete', 'on_hold', 'cancelled' ) as $status ) { $selected_value = isset( $_POST['status'] ) ? strtolower($_POST['status']) : ''; if ( in_array($selected_value, array('overdue', 'upcoming') ) ) { $selected_value = 'pending'; } $output .= '

: