<?php
if ( ! function_exists( 'spa_admin_page' ) ) {
  function spa_admin_page(){ ?>
  <div class="wrap">
    <h1 class="display-block">Welcome to the <strong>Sales Page Addon</strong></h1>

    <div class="card spa-normal-card card-primary">
    	<h2 class="title">Description</h2>
	    <p>Generate more leads for your landing page with this Sales Page Addon. Yes, get ready to boost all your businesses and increase your profits. This Sales Page Addon gives you a landing page, which is well optimized for performance, and sales page friendly design most importantly, just a single click is more than enough to import our Sales Page Addon Templates.</p>
	    <a href="https://wordpress.org/plugins/sales-page-addon/" class="docs button button-primary" target="_blank">Plugin Page</a>
	    <a href="https://nicheaddons.com/demos/sales-page/" class="docs button button-primary" target="_blank">Live Demo</a>
    </div>

    <div class="card spa-normal-card card-primary">
    	<h2 class="title">Enable & Disable - Widgets</h2>
	    <p>You can now enable and disable the unused widgets from Resataurand Add-On. These settings will allow you to control the clutter-free Elementor editor experience.</p>
	    <a href="admin.php?page=spa_admin_sub_page" class="docs button button-primary">Check Out</a>
    </div>

    <div class="card spa-normal-card card-secondary">
      <h2 class="title">Useful Links</h2>
      <ul>
        <li><a href="?page=spa_admin_page-contact">Support</a></li>
        <li><a href="https://nicheaddons.com/knowledge-base/" target="_blank">Documentation</a></li>
      </ul>
    </div>

  </div>
  <?php
  }
}