Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

81
Visualizações
Custom Text in a href

Can someone help me how i can manage to support this to work with translation text option.

<a
    href="{{url('account/my-review/delete/'.$value->id)}}" 
    onclick="return confirm('Are you sure you want to delete this review?');"
>
    <i class="fa fa-trash" style="color: #898b8d;"></i>
</a>

so i want to replace text Are you sure with text translation like : {{ trans('plugins/real-estate::dashboard.no_review') }}

To read my information from my file. Any ideas how to do it? Cause if i input it like that it just skip the pop up message and directly delete the record without show message.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Did you wrap with single quotes the blade bindings({{}})? It should work like this:

onclick="return confirm('{{ trans('plugins/real-estate::dashboard.no_review') }}');"

If not, then probably need to use laravel's __('plugins/real-estate::dashboard.no_review'), so then:

onclick="return confirm('{{ __('plugins/real-estate::dashboard.no_review') }}');"
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda