1. Turn on your Samsung monitor and make sure it's connected to your wifi. *Note make sure that your iPad is connected to the same wifi network.
2. While using your Samsung remote go to Settings > General > Apple AirPlay Settings.
3. Next turn AirPlay on, decide whether to require a pairing code every time you want to AirPlay from your iPad, or just the first time you AirPlay from a given device.
4. On your iPad to open the control center swipe down from the upper-right corner of the home screen.
5. Next, tap screen mirroring.
6. Now Tap Samsung M7 from the menu.
7. Now your iPad should display on your Samsung monitor.
*Note to turn off AirPlay, go to the Control Center, tap Screen Mirroring, then tap Stop Mirroring.