how to fetch iterate number in blades foreach loop over collection
<p>is there any way to fetch iterate number in blades foreach loop over collection ? I'm going to use it for selected drop down input default value . (i don't want to use "form model binding")</p>

<p>i try thesis and they does not work, maybe cause thesis for getting index value in foreach loop over objects : </p>

<p><code>key($theArrayYouAreLoopingThrough)</code></p>

<p><code>{{ @index }}</code></p>

<pre><code>@foreach ($athletes as $key=&gt;$athlete)
   {{ ++$key }}
@endforeach
</code></pre>

<p>and so on. </p>