You will see a pending status when a company sets the Ex-date and a complete status on the Pay-date, showing the total amount received. As you may already know, you will still get the dividend if you sell your shares between those dates.
This is how it will look if the company decides to give shares instead of cash:
Quick question, what if you buy before ex-div date and sell after like you said but the shares go up and you make profit? That means you get dividend payment and the profit of capital gain. I checked ex-div date of a company and looked on their share price chart and after the ex-div date the stock increased which I assume is because of people selling so isn’t this a loophole sort of? Or is it that some stocks may be the exception and increase rather than decrease after ex-div date