for loop - Laravel 4 - Enumerating @foreach -
I want to enter some material into @foreach I want something like this:
1 - First Data 2 - Second Data ...
I've used @forchha using an email, but I need to calculate this with the combination of @forac Have tried with @, but he has not worked for me ... does anyone know this?
Thank you in advance!
& lt ;? Php $ i = 1; ? & Gt; @foreach (collection as $ item) & lt; P & gt; {{$ I}} - {{$ item- & gt; Property}} & lt; / P & gt; & Lt ;? Php $ i ++; ? & Gt; @ Xraynecha
Comments
Post a Comment