I have a laravel blade form, using the input of the laravel collective form, for example:
<div class="form-group col-xs-4">
{!!Form::label('Titulo de modalidad','Titulo de modalidad:')!!}
{!!Form::text("cancion5","value",['class'=>'form-control', 'placeholder'=>'Ingrese el titulo de la modalidad'])!!}
</div>
I have a variable that contains a number:
{{$num = 1+4}}
I would like to insert that variable in the name attribute, I was thinking something like this:
<div class="form-group col-xs-4">
{!!Form::label('Titulo de modalidad','Titulo de modalidad:')!!}
{!!Form::text("cancion{{$num}}","value",['class'=>'form-control', 'placeholder'=>'Ingrese el titulo de la modalidad'])!!}
</div>
But it does not work for me, any way so I can insert the number 5 by a variable to the name?