prepare( 'SELECT COUNT(*) FROM block_info WHERE modx_user_id = ? AND status = 2' ); $stmtArchived->execute([$userId]); $archivedCount = (int) $stmtArchived->fetchColumn(); $stmtDeleted = $pdo->prepare( 'SELECT COUNT(*) FROM block_info WHERE modx_user_id = ? AND status = 3' ); $stmtDeleted->execute([$userId]); $deletedCount = (int) $stmtDeleted->fetchColumn(); // ── Block list (status 0 = new, 1 = active) ─────────────────────────────── $stmtBlocks = $pdo->prepare( 'SELECT * FROM block_info WHERE modx_user_id = ? AND status <= 1 ORDER BY id ASC' ); $stmtBlocks->execute([$userId]); $blocks = $stmtBlocks->fetchAll(); // ── Flash messages ──────────────────────────────────────────────────────── $flashSuccess = $_SESSION['flash_success'] ?? null; $flashError = $_SESSION['flash_error'] ?? null; unset($_SESSION['flash_success'], $_SESSION['flash_error']); $h = fn($v) => htmlspecialchars((string) $v, ENT_QUOTES, 'UTF-8'); include __DIR__ . '/../../layouts/header.php'; include __DIR__ . '/../../layouts/navbar.php'; ?>

ID
Block
Name
Size
Location
Current Crop
Status
Actions
No paddock records found. Create your first paddock above.
$row): $rowid = (int) $row['id']; $areaHa = number_format((float) $row['area'], 1); $areaAc = number_format((float) $row['area'] * 2.47105, 1); $areaDisp = $areaHa . ' ha – ' . $areaAc . ' ac'; ?>
       

Crop Information

Current Alerts
#AlertLevel
No alerts
Fertiliser & Disease Control
#ProductDate
No records
Irrigation & Weather
#EventDate
No records