Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

83
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda