# ═══════════════════════════════════════════════════════════════
# PHASE 9: BOARD, GOVERNANCE & TRANSFERS MODULE
# Module directory: /modules/board/
# ═══════════════════════════════════════════════════════════════
# READ THE MASTER PROMPT FIRST.

## YOUR TABLES
board_terms, board_positions, board_members, board_committees,
board_committee_members, board_meetings, board_meeting_agenda,
board_meeting_attendees, board_resolutions, board_resolution_votes,
transfer_types, membership_transfers, transfer_documents,
transfer_heirs, transfer_status_history,
special_offers, special_offer_conditions, special_offer_membership_types,
member_applied_offers

## PAGES TO BUILD

### 1. Board Terms (`GET /board/terms`)
- CRUD, status management

### 2. Board Members (`GET /board/members`)
- DataTable: Name, Position, Term, Status
- Add/remove board members
- Position assignment
- Resignation recording

### 3. Committees (`GET /board/committees`)
- CRUD with member assignment

### 4. Meetings (`GET /board/meetings`)
- DataTable: Meeting#, Type, Date, Status, Quorum
- Create meeting with agenda items
- Attendance recording (present/absent/excused/proxy)
- Quorum calculation
- Minutes recording (text + file upload)
- Minutes approval workflow

### 5. Resolutions (`GET /board/resolutions`)
- DataTable: Resolution#, Date, Title, Status, Votes
- Create from meeting or standalone
- Voting interface (for/against/abstain per board member)
- Implementation tracking
- Supersession chain

### 6. Membership Transfers (`GET /transfers`)
- DataTable: Transfer#, From, To, Type, Status
- Create transfer request (full form with all transfer_types fields)
- Document upload (death certificate, court order, divorce docs, etc.)
- Heir management (for inheritance transfers)
- Review/approve workflow
- Board approval when required
- Complete transfer (creates new member, terminates old)

### 7. Transfer Types Management
- CRUD for transfer_types

### 8. Special Offers (`GET /offers`)
- DataTable: Code, Name, Type, Dates, Uses, Status
- Create/edit offers with conditions
- Membership type targeting
- Apply offer to member (with invoice discount)
- Usage tracking

## BUSINESS LOGIC
- Board resolution voting tallies
- Quorum validation for meetings
- Transfer status machine: requested → documents_pending → under_review → board_pending → approved → completed
- Transfer completion calls appropriate stored procedures
- Special offer conditions evaluated on application

## DASHBOARD WIDGETS
1. **Upcoming Meetings** — Next scheduled meeting
2. **Pending Transfers** — Count
3. **Active Offers** — Count with usage stats

## PERMISSIONS
board.view, board.manage, board.resolutions,
transfers.view, transfers.manage, transfers.approve,
offers.view, offers.manage