how to find the index of the foreach loop in laravel code example
Example: loop index foreach laravel
@foreach ($teams as $key => $team)
{{ str_ordinal($key + 1) }}
@endforeach
@foreach ($teams as $key => $team)
{{ str_ordinal($key + 1) }}
@endforeach