Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!