<?php
/** @var bool $pickup */
/** @var string $address */
/** @var ?string $locationName */
?>
<div class="fss-need-address-info">
    <?php if ( $pickup ): ?>
        <?php if ( $locationName ): ?>
            <?php
            // translators: %s: location name
            printf( esc_html__( 'Comanda se va ridica personal din locația %s.', 'freya-sync-service' ), esc_html( $locationName ) );
            ?>
        <?php else: ?>
            <?php esc_html_e( 'Comanda se va ridica personal.', 'freya-sync-service' ); ?>
        <?php endif; ?>
    <?php elseif ( $address ): ?>
        <?php if ( $locationName ): ?>
            <?php
            // translators: %1$s: delivery address, %2$s: location name
            printf( esc_html__( 'Comanda va fi livrată la adresa „%1$s" din locația %2$s.', 'freya-sync-service' ), esc_html( $address ), esc_html( $locationName ) );
            ?>
        <?php else: ?>
            <?php
            // translators: %s: delivery address
            printf( esc_html__( 'Comanda va fi livrată la adresa „%s".', 'freya-sync-service' ), esc_html( $address ) );
            ?>
        <?php endif; ?>
    <?php else: ?>
        <?php esc_html_e( 'Nu ați selectat o locație de servire.', 'freya-sync-service' ); ?>
    <?php endif; ?>
</div>
