Dashboard

Admin User
Super Admin
Ethereum Account

Crop Master

Field Officers

Crop Pipeline Stages

Growth Pipeline Kanban

Batch Blockchain Report

TitleFarmerFarmEvent TypeSeasonStart DateStatusLast Synced
Loading...
ItemFarmerFarmCategoryStatusEvidenceDue DateLast Synced
Loading...
DateFarmerFarmSoil TypepHNPKLab
Loading...
Plot NameFarmerFarmSizeSoil TypeCrops HistoryRotation
Loading...
DateFarmerDeclaredConfirmedRejectGradeBatchNotes
Loading...
DateBatchBuyerQty SoldUnit PriceTotalNotes
Loading...
NamePhoneLocationRatingVerifiedSalesActions
Loading...
DateFarmerGrossDeductionsNetM-PESAStatusTX ID
Loading...

Sales & Payments Report

Sales by Month
Payments by Month
Production (Declared Kg) by Month
Batches Created by Month

Help / About the System

📖 Complete User Guide

Access the full user guide covering all Admin Portal and Android App features:

Open Full User Guide (HELP.html)
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 register via the Android app with personal details and farm locations.
  2. Farms are linked to farmers and record land size, crops grown, soil type, and GPS coordinates.
  3. Farm Plots divide farms into named sections for crop rotation tracking.
  4. Crops are selected from the Crop Master catalog and planted on specific plots.
  5. Pipeline Stages track crop growth from Seed Preparation through Harvest to Completed/Failed.
  6. Seasonal Plans let farmers plan activities across seasons (planting, fertilizing, harvest, etc.).
  7. Compliance Checklist tracks certification, safety, environmental, and quality requirements.
  8. Soil Tests record soil data (pH, N, P, K) per farm for fertility monitoring.
  9. Harvests are recorded per crop with quantities, dates, and quality data.
  10. Product Batches group harvested produce into tracked units with unique batch codes.
  11. Lab Tests assess batch quality against quality parameters.
  12. Field Officers oversee farms and verify data on the ground.
  13. Blockchain Records secure each supply chain step — harvest, quality check, shipment, certification.
  14. AI Advisory provides pest detection, disease identification, soil analysis, and personalized recommendations.
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: PENDINGSYNCINGCONFIRMED or FAILED

Modules Overview
ModulePurpose
DashboardKey metrics — total farmers, farms, active batches, pending blockchain records
FarmersView, search, and manage farmer registrations with status review (Registered/Verified/Active/Rejected)
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 lab tests and product batches with quality parameters
Pipeline StagesConfigure the crop growth pipeline (stages, sort order, harvest/terminal flags)
Growth PipelineKanban board showing crops by pipeline stage with advance controls
BlockchainBatch-level blockchain report showing the status of each lifecycle stage
Seasonal PlansView and filter seasonal plans created by farmers (by farmer, farm, season, event type, status, date)
ComplianceView and filter compliance checklist items (by category, status, farmer, farm)
Soil TestsView soil test records with pH, N, P, K data filtered by farmer/farm/soil type
Farm PlotsView farm subdivisions with crop rotation history and recommendations
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).