<?php
$deliveryDate = $this->getDeliveryDate();
$timeslot     = $this->getTimeslot();
$label        = $this->getLabel();
if ( empty( $deliveryDate ) ) {
  return;
}
?>
<div class="dreamfox-order-delivery">
  <header class="title">
    <h3><?php echo esc_html( $label ); ?></h3>
  </header>
  <dl>
    <dt><?php esc_html_e( 'Delivery date:', 'woocommerce-delivery-date' ); ?></dt>
    <dd><?php echo esc_html( $deliveryDate ); ?></dd>
    <?php if ( ! empty( $timeslot ) ) : ?>
    <dt><?php esc_html_e( 'Delivery timeslot:', 'woocommerce-delivery-date' ); ?></dt>
    <dd><?php echo esc_html( $timeslot ); ?></dd>
    <?php endif; ?>
  </dl>
</div>
