Dashboard

Admin User
Super Admin
Ethereum Account

Crop Master

Field Officers

Crop Pipeline Stages

Growth Pipeline Kanban

Batch Blockchain Report

Help / About the System

GoldLeaf Admin Portal

GoldLeaf is an agricultural supply chain platform that tracks produce from farm to consumer using blockchain technology for transparency and traceability.

Data Flow
  1. Farmers are registered with their personal details, farm locations, and contact information.
  2. Farms are linked to farmers and record land size, crops grown, soil type, and GPS coordinates for map viewing.
  3. Crops are catalogued in the Crop Master with scientific names, growing periods, and water requirements.
  4. Harvests are recorded per crop and per farm with quantities, dates, and quality data.
  5. Product Batches group harvested produce into tracked units with unique batch codes.
  6. Lab Tests assess batch quality against quality parameters for the farm.
  7. Field Officers oversee farms and verify data on the ground.
  8. Blockchain Records secure each supply chain step — every harvest, quality check, shipment, and certification is hashed on-chain.
Blockchain Lifecycle

Each batch passes through four blockchain-recorded stages:

StageWhat It Records
HARVESTHarvest date, quantity, crop type, farm location
QUALITY_CHECKLab test results, quality parameters, grade
SHIPMENTDispatch date, destination, transporter
CERTIFICATIONOrganic cert, compliance docs, audit trail

Status: PENDING → SYNCING → CONFIRMED or FAILED

Modules Overview
ModulePurpose
DashboardKey metrics — total farmers, farms, active batches, pending blockchain records
FarmersView, search, edit, and manage farmer registrations
FarmsView farm details, location on map, farm boundaries with area calculation
Map ViewGeographic visualization of all farms with interactive markers and popups
Crop MasterManage the crop catalogue — add, edit, delete crop types
Field OfficersManage field officer assignments and contact details
Lab ResultsView product batches and associated lab tests with quality parameters
BlockchainBatch-level blockchain report showing the status of each lifecycle stage
StatisticsAggregated charts and counts for the whole system
Technical Notes
  • Blockchain integration uses a 3-tier relay: upstream RPC → pure PHP ECDSA → simulated hash fallback.
  • Farm boundary area is calculated client-side using the shoelace formula with latitude correction (no external GIS library).
  • Wallet address: 0xb92702b3eefb3c2049aeb845b0335b283e11e9c6
  • The system runs on Apache with PHP 7.4+ and MySQL (MariaDB).