prepare("UPDATE shipments SET status = :status WHERE id = :id"); $stmt->execute([':status' => $status, ':id' => $shipmentId]); set_flash('success', t('success_status')); header('Location: ' . url_with_lang('admin_dashboard.php')); exit; } } $shipments = []; try { $stmt = db()->query("SELECT * FROM shipments ORDER BY created_at DESC LIMIT 30"); $shipments = $stmt->fetchAll(); } catch (Throwable $e) { $shipments = []; } $flash = get_flash(); render_header(t('admin_dashboard'), 'admin'); ?>

Control shipment status, manage locations, and onboard new users from one place.

total