# Karvi Partner with Gulab and Flamers

Partnership contract management system with admin panel, PDF generation, and digital signing.

## Data Storage

- **No local database** — all contract/signature data is sent to external APIs
- Configure API in `config/api.php`
- See `API_MAPPING.md` for endpoint details per page
- PDF files are still generated locally in `uploads/`

## Run Locally

```bash
php -S localhost:8082 router.php
```

Open: http://localhost:8082

## Admin Login
- **ID:** admin
- **Password:** 123456

## Features
- Admin form to create contracts with partner details
- Auto-generates filled PDF contract
- Unique customer signing link (open access, no login)
- Customer can draw signature on screen or upload from device
- Signature image, IP address, and device info saved for audit proof
- Black & white theme throughout

## Custom PDF Template
Place your contract PDF at `templates/contract_template.pdf` and adjust field coordinates in `includes/pdf_generator.php` (`pdf_field_map` function).
