=== Pal Biz AutoTracker ===
Plugin Name: Pal Biz AutoTracker
Contributors: palinfocomuser
Plugin URI: https://elearningstack.com
Author: ELS <pal.ahuja@palinfocom.net> 
Author URI: https://elearningstack.com/pal-ahuja/
Tags: sales, reports, woocommerce, email, analytics
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
WC requires at least: 7.0
Stable tag: 1.0.0

Send WooCommerce sales and registration reports by email with automatic PDF and CSV attachments.

== Description ==

**Pal Biz AutoTracker** is a powerful WordPress plugin designed for WooCommerce store owners who want to stay on top of their sales performance. 

Get comprehensive, automated reports delivered directly to your inbox with detailed information about:

* **📊 Orders Report** - Track all orders (free and paid) with complete order details
* **👥 User Registrations** - Monitor new customer registrations (verified and unverified)
* **🏪 Category Sales** - See which product categories are performing best

= Key Features =

✅ **Automated Report Generation** - Set it and forget it with automatic scheduling
✅ **Flexible Scheduling** - Choose from Daily, Weekly, or Monthly reports
✅ **Custom Date Ranges** - Generate manual reports for specific date ranges
✅ **Multiple Report Types** - Orders, Users, and Categories reports
✅ **PDF & CSV Formats** - Get reports in both formats automatically
✅ **Email Customization** - Customize email subject and body content
✅ **Dynamic Sender Configuration** - Set custom sender name and email
✅ **Debug Logging** - Built-in debug logger for troubleshooting
✅ **WooCommerce Integration** - Seamlessly integrates with WooCommerce
✅ **Professional Design** - Clean and intuitive admin interface

= How It Works =

1. Install and activate the plugin
2. Go to **WooCommerce → Pal Biz AutoTracker**
3. Configure your settings:
   - Enable/disable automatic reports
   - Choose report frequency (Daily/Weekly/Monthly)
   - Select which report types to include
   - Set recipient email addresses
   - Customize email subject and body
   - Configure sender name and email
4. Set up your schedule and send time
5. Sit back and receive automated reports!

= Requirements =

* WordPress 5.8 or higher
* PHP 7.4 or higher
* WooCommerce 6.0 or higher

= Support =

For support and inquiries, please contact: **cs@elearningstack.com**

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` directory
2. Activate the plugin from the WordPress Plugins page
3. Navigate to **WooCommerce → Pal Biz AutoTracker**
4. Configure your settings and enable automatic reports

== Frequently Asked Questions ==

= Can I customize the email template? =
Yes! You can customize both the email subject and body content in the plugin settings. Use placeholders like {week_end_date}, {site_name}, {date_range} to personalize your emails.

= What if I want to generate a report for a specific date range? =
You can use the "Generate Reports Now" button in the Manual Report Generation section and specify custom start and end dates. This won't affect your scheduled reports.

= How often can I schedule reports? =
You can choose from Daily, Weekly, or Monthly reports. For weekly reports, you can select the specific day of the week.

= Can I include free orders in the report? =
Yes! There's an option to include or exclude free orders from the Orders report.

= What formats are the reports? =
Reports are generated in both PDF and CSV formats for maximum flexibility.

= Where can I get help? =
Please contact us at cs@elearningstack.com for any support needs.

== Changelog ==

= 1.0.0 =
* Initial release of Pal Biz AutoTracker
* Automated report generation (Daily/Weekly/Monthly)
* Multiple report types (Orders, Users, Categories)
* Custom date range support for manual reports
* Email customization with dynamic sender configuration
* Debug logging system
* Professional admin interface
* WooCommerce integration

== Screenshots ==

1. Admin Dashboard - Main settings page with all configuration options
2. General Settings - Enable/disable reports and configure basic options
3. Report Settings - Choose which reports to include and filtering options
4. Email Settings - Customize email recipient, subject, body, and sender
5. Schedule Settings - Configure report frequency and send time
6. Manual Report Generation - Generate reports on-demand with custom date ranges
7. Tools Section - Test email functionality, clear cache, and view next scheduled run

== Upgrade Notice ==

= 1.0.0 =
Initial release of Pal Biz AutoTracker. Enjoy automated sales reporting!

== License ==

This plugin is licensed under the GPL v2 or later. See license.txt for details.

== Credits ==

Developed by **ELS** for **E-Learning Stack** (https://elearningstack.com)

== Additional Resources ==

* Official Website: https://elearningstack.com
* Support Email: cs@elearningstack.com
* GitHub: Coming soon

== Security ==

This plugin follows WordPress security best practices:
* Proper capability checks (manage_options)
* AJAX nonce verification
* Input sanitization and validation
* Output escaping with esc_html(), esc_attr(), etc.
* Safe database queries with prepared statements
