/**
  * @param $column
  */
 static function booking_column_value($column)
 {
     global $the_order;
     if ($column == 'bring_booking_status') {
         $order = new Bring_WC_Order_Adapter($the_order);
         $info = Bring_Booking_Common_View::get_booking_status_info($order);
         echo '<div>';
         echo Bring_Booking_Common_View::create_status_icon($info, 16);
         echo '</div>';
         echo '<div>';
         echo $info['text'];
         echo '</div>';
     }
 }
    /**
     * @param Bring_WC_Order_Adapter $order
     * @return string
     */
    static function render_errors($order)
    {
        $errors = $order->get_booking_errors();
        ?>
    <div class="bring-info-box">
      <div>
        <?php 
        $status = Bring_Booking_Common_View::get_booking_status_info($order);
        echo Bring_Booking_Common_View::create_status_icon($status);
        ?>
        <h3><?php 
        echo $status['text'];
        ?>
</h3>
      </div>

      <div class="bring-booking-errors">
        <div><?php 
        _e('Previous booking request failed with the following errors:', 'bring-fraktguiden');
        ?>
</div>
        <ul>
          <?php 
        foreach ($errors as $error) {
            ?>
            <li><?php 
            echo $error;
            ?>
</li>
          <?php 
        }
        ?>
        </ul>
        <div><?php 
        _e('Press Start to try again', 'bring-fraktguiden');
        ?>
</div>
      </div>
    </div>
    <?php 
    }