<?php

namespace Webnestors\Wsn\Snippets;

class AdminDisplayPhoneEmail extends \Webnestors\Wsn\Snippet {
    public $postid = 5;

    public function is_pro() : bool {
        return true;
    }

    public function tab() : string {
        return "admin";
    }

    public function title() : string {
        return esc_html__( "Display Customer Phone and Email", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Enable this to display the phone number and the email on the orders table right under the order number", "enhancements-for-woocommerce" );
    }

    public function meta() : array {
        return [];
    }

    public function tooltip() : ?string {
        ob_start();
        ?>
        <h1><strong><?php 
        echo esc_html( $this->title() );
        ?></strong></h1>
        <h3>Description</h3>
        <p>This module displays a phone number and email address under each order number in the WooCommerce orders table. This makes it easier to quickly contact customers directly from the orders list.</p>
        <h3>Settings</h3>
        <p>Just enable this and you go to WooCommerce->Orders to see the effect of the module</p>
        <h3>Appearance</h3>
        <p>The phone number appears with a phone icon and is clickable to initiate a call. The email address appears below and is clickable to open your email client.</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_phone_and_email_column( $column, $id ) {
    }

}
