# Zad HR — Product Overview

**Zad HR** is a bilingual, multi-tenant human-resources platform delivered as a Flutter mobile application on top of an Odoo backend. It gives every employee a single app for their daily HR life — clocking in on location, requesting leave, viewing payslips, applying for loans and raising complaints — while giving HR and administrators the tools to review and approve everything.

> All statements in this document are derived directly from the application source code.

---

## The problem it solves

Many companies still run attendance on paper sheets or spreadsheets, handle leave over chat, and distribute payslips by email. That is slow, error-prone and impossible to audit. Zad HR replaces those fragmented flows with one auditable mobile workflow:

- **Attendance** becomes location-verified and tamper-resistant.
- **Leave and loan requests** become structured, multi-stage approvals.
- **Payslips** become self-service, available on demand.
- **Complaints** get a tracked, reply-able case flow.

## Target customers

- Small-to-mid businesses that need a ready-made HR app without building one.
- Enterprises and multi-branch organizations that need **field-ready attendance** with geofencing.
- Companies operating in **Arabic and English** environments requiring full RTL support.
- Any organization already running (or willing to run) an **Odoo** HR backend.

## What makes it different

| Capability | How Zad HR delivers it |
|---|---|
| Multi-tenant | Each company signs in with its own domain → isolated Odoo instance. |
| Location integrity | Check-in/out validated against company geofences via device GPS. |
| Multi-stage approvals | First approver → second approver → HR, enforced **server-side**. |
| Bilingual | Full Arabic + English, automatic RTL layout, locale-aware dates. |
| Cross-platform | Single Flutter codebase → Android and iOS. |
| Secure sessions | Server-verified sessions, forced logout on auth failure, per-user state reset. |

## Core modules

1. **Attendance** — geofenced check-in/check-out, live clock, activity history.
2. **Leaves** — day/hour requests, leave types, remaining balances, compensatory leave, attachments.
3. **Payslips / Payroll** — browse history, preview PDF in-app, save to device.
4. **Loans** — request by type and amount, multi-stage approval tracking (tenant-gated).
5. **Complaints** — create with attachments, threaded HR replies, review workflow (tenant-gated).
6. **Reports** — personal attendance activity timeline.
7. **Profile & self-service** — profile, language switch, password reset, settings.
8. **HR Approvals Hub** — approve/refuse leaves and loans, complaint review, leave-flow history.

## Technology at a glance

- **Frontend:** Flutter (Dart), Bloc/Cubit state management, ScreenUtil responsive layouts.
- **Networking:** Dio REST client with a per-tenant base URL.
- **Backend:** Odoo (multi-tenant, one instance per company).
- **Platform services:** Firebase Core; Geolocator for location; SharedPreferences for local cache.
- **Localization:** intl / Flutter localizations (Arabic + English, RTL).

See [TECH_STACK.md](TECH_STACK.md), [ARCHITECTURE.md](ARCHITECTURE.md) and [FEATURES.md](FEATURES.md) for detail.
