I do have a variable in vuejs :
invoice.id
I want to add this id to a laravel route in blade like so :
<a href="/invoice/{{invoice.id}}/history" />
but it does not work, is there any way how to pass that variable to the route ?
I am getting invoices as an array like so :
<script>
import {statusColor} from "../util";
export default {
props: ['invoice', 'index'],
</script>
invoice its an array.