0, 'offers' => 0, 'confirmed' => 0, ]; try { $pdo = db(); $stats['shipments'] = (int) $pdo->query("SELECT COUNT(*) FROM shipments")->fetchColumn(); $stats['offers'] = (int) $pdo->query("SELECT COUNT(*) FROM shipments WHERE offer_price IS NOT NULL")->fetchColumn(); $stats['confirmed'] = (int) $pdo->query("SELECT COUNT(*) FROM shipments WHERE status IN ('confirmed','in_transit','delivered')")->fetchColumn(); } catch (Throwable $e) { // Keep the landing page stable even if DB is unavailable. } $recentShipments = []; try { $stmt = db()->query("SELECT * FROM shipments ORDER BY created_at DESC LIMIT 5"); $recentShipments = $stmt->fetchAll(); } catch (Throwable $e) { $recentShipments = []; } render_header(t('app_name'), 'home'); ?>
+
+
+

Logistics

1

2

3

Secure booking and track the delivery until completion.

Ready to transform your logistics?

Join our platform today to find reliable trucks or secure the best shipments in the market.