D
D
Danila5342020-11-10 21:25:54
Laravel
Danila534, 2020-11-10 21:25:54

Counter on Laravel 1-100 (Implementation)?

@foreach ((new App\Services\PlayersService)->TopSila() as $player)
<div class="Block1" style="clear: both;">
<div class="Information" style="display:inline-block;color:#827af7;">ТУТ МЕСТО (1-100)</div> // Блок который повторяется 100 раз
</div>
@endforeach


The point is. that I have an html block that is repeated 100 times, through foreach , but there is only one in it, what is the best way to make a sequence of numbers in these blocks? For example: seat 1 , seat 2 , seat 3

Thanks in advance :3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2020-11-10
@Danila534

Trite! But I advise you to first read the documentation on the template engine, as well as the entire framework!
There on the page it is written how to use a different variable$loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question