<?php

namespace ECWP\Admin;

class ECWP_Addons
{
    public function __construct()
    {
        // Plus de sous-menu WordPress - navigation SPA uniquement
    }

    /**
     * @return [type]
     */
    public function render_page()
    {
        ?>
<div class="wrap">
    <h1><?php esc_html_e('myEasyCompta Addons', 'my-easy-compta');?></h1>
    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">

        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Email', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Enhance myEasyCompta with email notification functionalities. Customize email templates, send estimates or invoices directly, and log sent emails. Ideal for maintaining smooth email communication with clients.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-e-mail/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Export', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Export your financial data in various formats such as CSV and Excel. Customize export fields to include customers, quotes, invoices, payments, expenses, and statistics.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-export/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Planning', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Integrate a planning module to manage your schedule. Create and assign tasks with specific categories, and track project deadlines and workloads efficiently.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-planning/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Stats', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Get detailed statistical analysis of your financial data. Generate various reports on income, expenses, and profitability with graphical representations for easier interpretation.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-stats/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta User', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Create secure access for your customers. Allow them to view quotes, invoices, payments, and statistics, and update their information and passwords through a dedicated dashboard.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-compte-client/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta SIRET Search', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('The Easy-Compta SIRET plugin adds a field to quickly retrieve customer information using the French government business directory API (https://api.gouv.fr). This enhances the efficiency of managing client data within the Easy-Compta system.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-siret/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Woo', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Integrate myEasyCompta with WooCommerce to automatically generate invoices for each new order. Sync WooCommerce sales data, manage transactions, track sales, and handle customer invoicing seamlessly.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-woo/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Backup', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('myEasyCompta Backup plugin provides integrated solutions for securely backing up, restoring, and managing financial data.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-backup/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Signature', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('myEasyCompta Signature allows myEasyCompta users to easily collect digital signatures on quotes, ensuring secure and efficient document approval.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-signature/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Payment', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('myEasyCompta Payment allows myEasyCompta users to offer their clients the ability to pay invoices directly through secure and integrated payment options.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-payment/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta Advance', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('myEasyCompta Acompte is a plugin designed to simplify your invoicing process. Once a quote has been validated, Acompte lets you generate down-payment and balance invoices with ease. You can set up down-payment invoices as percentages or fixed amounts, with automatic calculation of remaining amounts.', 'my-easy-compta');?>
                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-advance/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta QRCode Stripe', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                <?php esc_html_e('myEasyCompta QRCode Stripe allows you to add a dynamic QR code to your invoices for Stripe payments. Simplify the payment process for your clients by providing a direct link to your Stripe checkout page, ensuring fast and secure transactions.', 'my-easy-compta');?>                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-qrcode-stripe/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col">
            <div class="card-body flex flex-col flex-grow">
                <h2 class="card-title mb-2"><?php esc_html_e('myEasyCompta SureCart', 'my-easy-compta');?></h2>
                <p class="mb-2 flex-grow">
                <?php esc_html_e('myEasyCompta SureCart integrates seamlessly with SureCart to automatically generate invoices for your transactions. Keep your invoicing process organized and compliant, with detailed invoices automatically created for each order in SureCart.', 'my-easy-compta');?>                </p>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-surecart/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
        <div class="card p-6 bg-base-100 shadow-xl flex flex-col border-2 border-primary">
            <div class="card-body flex flex-col flex-grow">
                <div class="flex items-center gap-2 mb-2">
                    <h2 class="card-title mb-0"><?php esc_html_e('myEasyCompta Recurring Invoices', 'my-easy-compta');?></h2>
                    <span class="badge badge-primary badge-sm"><?php esc_html_e('New', 'my-easy-compta');?></span>
                </div>
                <p class="mb-2 flex-grow">
                    <?php esc_html_e('Automate your recurring billing with myEasyCompta Recurring Invoices. Create invoice templates with customizable frequencies (monthly, quarterly, semi-annual, annual, or custom). Automatically generate invoices according to your schedule, manage start/end dates, pause or resume recurrences, and track the history of generated invoices. Perfect for subscriptions and recurring services.', 'my-easy-compta');?>
                </p>
                <div class="flex flex-col gap-2 mb-3">
                    <div class="flex items-center gap-2 text-sm">
                        <i class="fas fa-check-circle text-success"></i>
                        <span><?php esc_html_e('Multiple frequency options', 'my-easy-compta');?></span>
                    </div>
                    <div class="flex items-center gap-2 text-sm">
                        <i class="fas fa-check-circle text-success"></i>
                        <span><?php esc_html_e('Automatic invoice generation', 'my-easy-compta');?></span>
                    </div>
                    <div class="flex items-center gap-2 text-sm">
                        <i class="fas fa-check-circle text-success"></i>
                        <span><?php esc_html_e('Pause/Resume functionality', 'my-easy-compta');?></span>
                    </div>
                    <div class="flex items-center gap-2 text-sm">
                        <i class="fas fa-check-circle text-success"></i>
                        <span><?php esc_html_e('Generation history tracking', 'my-easy-compta');?></span>
                    </div>
                </div>
                <div class="flex card-actions justify-end mt-auto btn-rounded">
                    <a class="btn btn-primary hover:text-white rounded-full"
                        href="https://myeasycompta.com/addons-all/myeasycompta-recurring-invoices/"
                        target="_blank"><?php esc_html_e('Read more', 'my-easy-compta');?></a>
                </div>
            </div>
        </div>
    </div>
</div>
<?php
}

}