How bitcoin is peer to peer? Bitcoin's whitepaper says that "A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution". That is, without a trusted third party. But in Bitcoin, instead of the third party being financial institution, it is miners who are in between. So, how bitcoin is peer to peer? And isn't the traditional method of payment, including PayPal etc., peer to peer?
miners who are in between


No, miners aren't in between. Miners around of block-chain, they are builders of the chain. *

* As Pieter Wuille says in the comment, anyone can be a miner, but in nowadays that's too hard to be a miner without special hardware.


  And isn't the traditional method of payment, including PayPal etc.,
  peer to peer?


No, that's also false, peer-to-peer doesnt have a centralized management.



Here is peer to peer (computer  to computer for e.g.). 

And here is centralized service like PayPal or whatever:



The PayPal has centralized management.


  But for the end user, he just scans the paypal's code of the receiver
  and payment is done. Sender to receiver. So isn't this peer to peer?


You're simplifying things too much. For example the telephone call, you just speaks with a friend of yours directly, looks like peer-to-peer(friend-to-friend), but under the hood the phone provider in between you and your friend.