You cannot access a Javascript variable in a PHP view; the Blade template has already been rendered and sent to the browser every before Javascript has been executed/evaluated.
Can you describe the problem you were trying to solve; and why the image is available in JS, but not in PHP?
When using Vue.js with Blade templates in Laravel, there can be a conflict between Blade's and Vue's syntax for outputting variables, as both use curly braces. To resolve this, you can use the @ symbol to escape Blade's curly braces, which you've already done correctly in your example. However, if you're still encountering issues, here are a few things to check and consider:
Ensure Vue.js is properly initialized: Make sure that Vue.js is correctly set up and initialized in your project. This includes having the Vue instance created and the el property pointing to the correct DOM element.
Check the data structure: Ensure that sliders is correctly defined in your Vue instance's data and that each slider object contains a savedname property.
Verify the path: Double-check that the path to your images is correct and that the images are accessible from the given path.
Console Errors: Check the browser's console for any JavaScript errors that might indicate why the image path isn't being resolved correctly.
Here's a basic example of how your Vue instance might look: