How to fix this laminate flooring edge?
That last piece should have been cut to match, well fill, the gap on the left.
If there is a waste piece available then you can cut a bit to just drop in at this point, unless you have a spare full board to cut properly.
As for the end trim - it needs securing properly either gluing or screwing as needed.