trim($_POST['first_name'] ?? ''), 'last_name' => trim($_POST['last_name'] ?? ''), 'company_name' => trim($_POST['company'] ?? null), 'email' => trim($_POST['email'] ?? ''), 'phone' => trim($_POST['phone'] ?? null), 'status' => trim($_POST['status'] ?? 'active'), 'client_group' => trim($_POST['client_group'] ?? 'none'), 'admin_notes' => trim($_POST['admin_notes'] ?? null), ]; Client::update($id, $data); header("Location: dashboard.php?module=clients&action=profile&id=$id"); exit; } // view-ის ჩატვირთვა require_once __DIR__ . '/../views/clients_edit.php';