This code works, however in my learning of Laravel, I want to know if using Blade+Laravel syntax, can be better implemented
Yes, there is. Templating is made just for that, you can see how similar things are done with the docs : laravel blade : loops
@for ($i = 0; $i < $post->images->count()); $i++) @endfor