<?php

namespace Webnestors\Wsn\Snippets;

class AdminOrdersTotalByCustomerColumn extends \Webnestors\Wsn\Snippet {
    public function is_pro() : bool {
        return true;
    }

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

    public function title() : string {
        return esc_html__( "Show Total Orders by Customer", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Enabling this the admin will see a column of total orders by that customer", "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>The Show Total Orders by Customer module enhances the WooCommerce admin orders page by adding a new column that displays the total number of orders placed by each customer. This feature provides valuable insights into customer purchasing behavior, allowing store administrators to quickly assess customer loyalty and engagement at a glance.</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 are no appearence options for this module</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_add_order_count_column( $columns ) {
    }

    function wn_populate_new_column( $column, $id ) {
    }

}
