Laravel - @each get current iteration
<p>I am using the @each blade directive to loop through an array of query results and render them (in this case, the @each directive tends to be a bit of a better idea than a foreach loop since the HTML that will be renders changes depending on the result of the query). This all works fine, but I have the issue of trying to get the current index of the query itself.</p>

<p>In other words, using the @each directive, I need to be able to access the key (or index) of the current loop in the partial that is being rendered.</p>

<p>If you have anything that you need to know, just ask.</p>

<p>Thank you for reading!</p>