# ClickOM 2.0

ClickOM 2.0 is a comprehensive business management platform built with Laravel. It provides modules for sales, inventory, leads, courier integration, reporting, and more, tailored for e-commerce and retail operations.

## Features

- **User & Role Management:** Authentication, user roles, and permissions.
- **Product & Inventory:** Product CRUD, bulk import, stock adjustment, categories, attributes, and units.
- **Order Management:** Sales, billing, waybills, returns, batch processing, and duplicate detection.
- **Leads Management:** Import, merge, assign, convert, and export leads.
- **Courier Integration:** Multiple courier payment modules, Farder courier API, and WooCommerce webhooks.
- **Reporting:** Area-wise sales, profit/loss, customer, supplier, dispatch, and custom reports.
- **Settings & Templates:** Downloadable import templates and configurable business settings.
- **Expense & Payment Tracking:** Expense categories, payments, and account management.
- **Audit & Logs:** Activity logs and manual audit tools.
- **Google Sheets Sync:** Sync and fetch data with Google Sheets.

## Setup Instructions

1. **Clone the repository:**
    ```bash
    git clone https://github.com/yourusername/ClickOM-2.0.git
    cd ClickOM-2.0
    ```

2. **Install dependencies:**
    ```bash
    composer install
    npm install
    ```

3. **Environment setup:**
    - Copy `.env.example` to `.env` and configure your database and mail settings.

4. **Generate application key:**
    ```bash
    php artisan key:generate
    ```

5. **Run migrations:**
    ```bash
    php artisan migrate --seed
    ```

6. **Build frontend assets:**
    ```bash
    npm run dev
    ```

7. **Start the server:**
    ```bash
    php artisan serve
    ```

## Usage Notes

- Access the admin dashboard at `/home` after login.
- Use the sidebar or top navigation to access modules like Products, Orders, Leads, Couriers, Reports, and Settings.
- Webhooks and integrations (WooCommerce, Courier) are available via their respective endpoints.
- For Google Sheets sync, use `/sync-google-sheets` and `/fetch-google-sheets` routes.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the MIT License.
