I have two variables, which are same but localized. And i also have a $locale variable, which is holding locale appendix (_en etc..)
Now i want to combine them and create variable variable to print proper localized variable.
{{${'$v->fuel_type->vehicle_fuel_type'}.$locale}}
But i get error Undefined variable: $v->fuel_type->vehicle_fuel_type_en (View: /var/www/html/sixt/resources/views/offerselect-new.blade.php)
But there is $v->fuel_type->vehicle_fule_type variable. What's wrong with this?
{{ $v->fuel_type->${'vehicle_fuel_type' . $locale} }}