'Is a way to echo translation string in laravel?

I want to translate text inside the button.

<?php
                   
                        if ($product->category_slug === 'bramy-przesuwne' || $product->category_slug === 'bramy-skrzydlowe' || $product->category_slug === 'furtki' || $product->category_slug === 'przesla') {
                            echo '
                                                              <button class="product-cart-button" id="btnOpenForm">
                                                                    <p>'. '@lang(WYCEŃ)' .'</p>
                                                                </button>
                                                           
                                                ';
                        }
                        ?>

but the result is just @lang(WYCEŃ) inside this button. What should i do to receive the translation in right way?



Solution 1:[1]

Thanks for help. The solution is

<button class="product-cart-button" id="btnOpenForm">
<p>'. __('string.WYCE?') .'</p></button>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Patryk